Apache Knox
2025年10月11日小于 1 分钟
The Apache Knox™ Gateway is an Application Gateway for interacting with the REST APIs and UIs
of Apache Hadoop deployments.
Apache Knox 是专门为 Hadoop 生态系统设计的反向代理网关,无需复杂配置。
conf/gateway-site.xml
<configuration>
<property>
<name>gateway.port</name>
<value>9009</value>
</property>
<property>
<name>gateway.path</name>
<value>gateway</value>
</property>
<!-- 如果不需要 HTTPS,可以禁用 -->
<property>
<name>ssl.enabled</name>
<value>false</value>
</property>
<!-- 如果使用 HTTPS,默认是 8443 -->
<!--
<property>
<name>gateway.port</name>
<value>9009</value>
</property>
-->
</configuration>conf/topologies/hadoop.xml
<topology>
<gateway>
<provider>
<role>authentication</role>
<name>Anonymous</name>
<enabled>true</enabled>
</provider>
</gateway>
<service>
<role>NAMENODE</role>
<url>http://localhost:9870</url>
</service>
<service>
<role>RESOURCEMANAGER</role>
<url>http://localhost:8088</url>
</service>
<service>
<role>HISTORYSERVER</role>
<url>http://localhost:19888</url>
</service>
</topology>bin/gateway.sh startbin/knoxcli.sh create-master