diff --git a/0001-nodejs-url.patch b/0001-nodejs-url.patch
new file mode 100644
index 0000000000000000000000000000000000000000..4790739186936a5ef15d426717c811430c53ea50
--- /dev/null
+++ b/0001-nodejs-url.patch
@@ -0,0 +1,36 @@
+--- knox-1.6.1-release/gateway-admin-ui/pom.xml 2021-12-15 01:57:02.000000000 +0800
++++ knox-1.6.1-release-change/gateway-admin-ui/pom.xml 2022-04-28 19:24:33.905342128 +0800
+@@ -56,7 +56,8 @@
+ install-node-and-npm
+
+
+- ${nodejs.version}
++ ${nodejs.version}
++ https://repo.huaweicloud.com/nodejs/
+
+
+
+--- knox-1.6.1-release/knox-token-management-ui/pom.xml 2021-12-15 01:57:02.000000000 +0800
++++ knox-1.6.1-release-change/knox-token-management-ui/pom.xml 2022-04-28 19:27:01.437875080 +0800
+@@ -56,7 +56,8 @@
+ install-node-and-npm
+
+
+- ${nodejs.version}
++ ${nodejs.version}
++ https://repo.huaweicloud.com/nodejs/
+
+
+
+--- knox-1.6.1-release/knox-homepage-ui/pom.xml 2021-12-15 01:57:02.000000000 +0800
++++ knox-1.6.1-release-change/knox-homepage-ui/pom.xml 2022-04-28 19:27:40.264541687 +0800
+@@ -56,7 +56,8 @@
+ install-node-and-npm
+
+
+- ${nodejs.version}
++ ${nodejs.version}
++ https://repo.huaweicloud.com/nodejs/
+
+
+
diff --git a/cloudera-manager-api-swagger-7.0.3.jar b/cloudera-manager-api-swagger-7.0.3.jar
new file mode 100644
index 0000000000000000000000000000000000000000..7146bcc0b016ab8d59f5237c9e691f569869a05a
Binary files /dev/null and b/cloudera-manager-api-swagger-7.0.3.jar differ
diff --git a/disable-webui.patch b/disable-webui.patch
new file mode 100644
index 0000000000000000000000000000000000000000..e228090467e2741df114e936321b9492b39c3d4f
--- /dev/null
+++ b/disable-webui.patch
@@ -0,0 +1,24 @@
+--- knox-1.6.1-release/pom.xml 2021-12-15 01:57:02.000000000 +0800
++++ knox-1.6.1-release-bak/pom.xml 2022-05-09 20:39:43.376569536 +0800
+@@ -128,7 +128,7 @@
+ gateway-service-vault
+ gateway-service-test
+ gateway-test-release
+- gateway-admin-ui
++
+ gateway-applications
+ gateway-shell-samples
+ gateway-shell-release
+@@ -142,9 +142,9 @@
+ gateway-topology-hadoop-xml
+ gateway-service-metadata
+ gateway-service-session
+- knox-homepage-ui
+- gateway-openapi-ui
+- knox-token-management-ui
++
++
++
+
+
+
diff --git a/knox.spec b/knox.spec
new file mode 100644
index 0000000000000000000000000000000000000000..5a847ba5467bb417eb3e0542e0b57409305f4ee4
--- /dev/null
+++ b/knox.spec
@@ -0,0 +1,41 @@
+%define _jar_repack %{nil}
+%define _define _jar_repack %{nil}
+%define debug_package %{nil}
+
+Name: knox
+Version: 1.6.1
+Release: 1
+Summary: The Apache Knox™ Gateway is an Application Gateway for interacting with the REST APIs and UIs of Apache Hadoop deployments.
+License: Apache-2.0
+URL: https://knox.apache.org
+Source0: https://github.com/apache/knox/archive/refs/tags/v1.6.1-release.tar.gz
+Source1: cloudera-manager-api-swagger-7.0.3.jar
+Source2: xmlsectool-2.0.0.jar
+Patch0: 0001-nodejs-url.patch
+Patch1: disable-webui.patch
+BuildRequires: java-1.8.0-openjdk-devel maven npm
+Requires: java-1.8.0-openjdk
+
+%description
+The Apache Knox™ Gateway is an Application Gateway for interacting with the REST APIs and UIs of Apache Hadoop deployments.
+
+%prep
+mvn install:install-file -DgroupId=com.cloudera.api.swagger -DartifactId=cloudera-manager-api-swagger -Dversion=7.0.3 -Dpackaging=jar -Dfile=%{SOURCE1}
+mvn install:install-file -DgroupId=net.shibboleth.tool -DartifactId=xmlsectool -Dversion=2.0.0 -Dpackaging=jar -Dfile=%{SOURCE2}
+%autosetup -p1 -n knox-1.6.1-release
+
+%build
+npm config set registry https://repo.huaweicloud.com/repository/npm/
+npm cache clean -f
+mvn -Prelease clean install -Dcheckstyle.skip -DskipTests -Drat.skip=true
+
+%install
+mkdir -p $RPM_BUILD_ROOT/opt/knox
+cp -r %{_builddir} $RPM_BUILD_ROOT/opt/knox
+%files
+/opt/knox
+
+%changelog
+* Thu Apr 28 2022 xiexing - 1.6.1-1
+- Init package
+
diff --git a/v1.6.1-release.tar.gz b/v1.6.1-release.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..bf0410b7c0860345f70317234edede11c1fad7c7
Binary files /dev/null and b/v1.6.1-release.tar.gz differ
diff --git a/xmlsectool-2.0.0.jar b/xmlsectool-2.0.0.jar
new file mode 100644
index 0000000000000000000000000000000000000000..e163552d018382e28348d1c3c8aca7e2d178dd60
Binary files /dev/null and b/xmlsectool-2.0.0.jar differ