Apache spark 在上下文localhost:18080/sparkhistory上运行Spark history Server,而不是在端口localhost:18080上运行
我想在localhost:18080上运行Spark history server,而不是在localhost:18080上运行sparkhistory 最终目标是使用域名(即domainname/sparkhistory)访问Spark History服务器Apache spark 在上下文localhost:18080/sparkhistory上运行Spark history Server,而不是在端口localhost:18080上运行,apache-spark,apache-spark-sql,cloudera,databricks,apache-spark-2.0,Apache Spark,Apache Spark Sql,Cloudera,Databricks,Apache Spark 2.0,我想在localhost:18080上运行Spark history server,而不是在localhost:18080上运行sparkhistory 最终目标是使用域名(即domainname/sparkhistory)访问Spark History服务器 是否有任何黑客或spark配置选项?据我所知,路径硬编码为“/history”(请参阅org.apache.spark.deploy.history.HistoryServerval UI\u path\u PREFIX=“/histor
是否有任何黑客或spark配置选项?据我所知,路径硬编码为“/history”(请参阅org.apache.spark.deploy.history.HistoryServer
val UI\u path\u PREFIX=“/history”
),因此我认为您不能,除非您以某种方式修改此文件。
您可以尝试设置nginx服务器,它将使用如下配置将您的请求转发到历史记录服务器
server {
server_name domainname;
location /sparkhistory/ {
proxy_pass http://localhost:18080/;
proxy_set_header Accept-Encoding "";
sub_filter "/static/" "/sparkhistory/static/";
sub_filter '<a href="/' '<a href="/sparkhistory/';
sub_filter_once off;
}
}
服务器{
服务器名称域名;
位置/火花历史/{
代理通行证http://localhost:18080/;
代理集头接受编码“”;
子过滤器“/static/”/sparkhistory/static/”;
sub_filter'据我所知,路径硬编码为“/history”(请参阅org.apache.spark.deploy.history.HistoryServerval UI_path_PREFIX=“/history”
),因此我认为您不能,除非您以某种方式修改此文件。
您可以尝试设置nginx服务器,它将使用如下配置将您的请求转发到历史记录服务器
server {
server_name domainname;
location /sparkhistory/ {
proxy_pass http://localhost:18080/;
proxy_set_header Accept-Encoding "";
sub_filter "/static/" "/sparkhistory/static/";
sub_filter '<a href="/' '<a href="/sparkhistory/';
sub_filter_once off;
}
}
服务器{
服务器名称域名;
位置/火花历史/{
代理通行证http://localhost:18080/;
代理集头接受编码“”;
子过滤器“/static/”/sparkhistory/static/”;
子过滤器'