Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache spark 在上下文localhost:18080/sparkhistory上运行Spark history Server,而不是在端口localhost:18080上运行_Apache Spark_Apache Spark Sql_Cloudera_Databricks_Apache Spark 2.0 - Fatal编程技术网

Apache spark 在上下文localhost:18080/sparkhistory上运行Spark history Server,而不是在端口localhost:18080上运行

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

我想在localhost:18080上运行Spark history server,而不是在localhost:18080上运行sparkhistory

最终目标是使用域名(即domainname/sparkhistory)访问Spark History服务器


是否有任何黑客或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.HistoryServer
val 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/”;
子过滤器'