diff --git a/roles/knox/common/templates/services/livy/0.4.3/rewrite.xml.j2 b/roles/knox/common/templates/services/livy/0.4.3/rewrite.xml.j2
new file mode 100644
index 00000000..c8a7f3c0
--- /dev/null
+++ b/roles/knox/common/templates/services/livy/0.4.3/rewrite.xml.j2
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/roles/knox/common/templates/services/livy/0.4.3/service.xml.j2 b/roles/knox/common/templates/services/livy/0.4.3/service.xml.j2
new file mode 100644
index 00000000..f7434565
--- /dev/null
+++ b/roles/knox/common/templates/services/livy/0.4.3/service.xml.j2
@@ -0,0 +1,35 @@
+
+
+
+
+ API_AND_UI
+ /livy/
+ Livy Server
+ Apache Livy is a service that enables easy interaction with a Spark cluster over a REST interface.
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/roles/knox/gateway/tasks/config.yml b/roles/knox/gateway/tasks/config.yml
index 9c645a92..7a69c11b 100644
--- a/roles/knox/gateway/tasks/config.yml
+++ b/roles/knox/gateway/tasks/config.yml
@@ -97,6 +97,31 @@
group: "{{ knox_group }}"
mode: "644"
+# Livy Spark 2 service definition
+- name: Create Livy Spark 2 service dir
+ ansible.builtin.file:
+ path: "{{ knox_data_dir }}/data/services/livy/0.4.3"
+ state: directory
+ owner: "{{ knox_user }}"
+ group: "{{ knox_group }}"
+ mode: "755"
+
+- name: Template Livy Spark 2 service.xml
+ ansible.builtin.template:
+ src: services/livy/0.4.3/service.xml.j2
+ dest: "{{ knox_data_dir }}/data/services/livy/0.4.3/service.xml"
+ owner: "{{ knox_user }}"
+ group: "{{ knox_group }}"
+ mode: "644"
+
+- name: Template Livy Spark 2 rewrite.xml
+ ansible.builtin.template:
+ src: services/livy/0.4.3/rewrite.xml.j2
+ dest: "{{ knox_data_dir }}/data/services/livy/0.4.3/rewrite.xml"
+ owner: "{{ knox_user }}"
+ group: "{{ knox_group }}"
+ mode: "644"
+
- name: Template Knox gateway-site.xml
ansible.builtin.template:
src: gateway-site.xml.j2