Эх сурвалжийг харах

[core] Add a default webhdfs url in order to avoid misconfiguration warning

Romain Rigaux 12 жил өмнө
parent
commit
a9d55e422a

+ 3 - 3
desktop/conf.dist/hue.ini

@@ -320,9 +320,9 @@
       ## logical_name=
 
       # Use WebHdfs/HttpFs as the communication mechanism.
-      # This should be the web service root URL, such as
-      # http://namenode:50070/webhdfs/v1
-      ## webhdfs_url=
+      # Domain should be the NameNode or HttpFs host.
+      # Default port is 14000 for HttpFs.
+      ## webhdfs_url=http://namenode:50070/webhdfs/v1
 
       # Change this if your HDFS cluster is Kerberos-secured
       ## security_enabled=false

+ 3 - 3
desktop/conf/pseudo-distributed.ini.tmpl

@@ -325,9 +325,9 @@
       ## logical_name=
 
       # Use WebHdfs/HttpFs as the communication mechanism.
-      # This should be the web service root URL, such as
-      # http://namenode:50070/webhdfs/v1
-      ## webhdfs_url=
+      # Domain should be the NameNode or HttpFs host.
+      # Default port is 14000 for HttpFs.
+      ## webhdfs_url=http://localhost:50070/webhdfs/v1
 
       # Change this if your HDFS cluster is Kerberos-secured
       ## security_enabled=false

+ 1 - 9
desktop/libs/hadoop/src/hadoop/conf.py

@@ -73,14 +73,6 @@ HDFS_CLUSTERS = UnspecifiedConfigSection(
   each=ConfigSection(
     help="Information about a single HDFS cluster",
     members=dict(
-      # Deprecated
-      NN_HOST=Config("namenode_host", help="Host/IP for name node"),
-
-      NN_THRIFT_PORT=Config("thrift_port", help="Thrift port for name node", default=10090,
-                            type=int),
-      NN_HDFS_PORT=Config("hdfs_port", help="Hadoop IPC port for the name node", default=8020,
-                            type=int),
-      # End deprecation
       FS_DEFAULTFS=Config("fs_defaultfs", help="The equivalent of fs.defaultFS (aka fs.default.name)",
                           default="hdfs://localhost:8020"),
       LOGICAL_NAME = Config("logical_name", default="",
@@ -88,7 +80,7 @@ HDFS_CLUSTERS = UnspecifiedConfigSection(
       WEBHDFS_URL=Config("webhdfs_url",
                          help="The URL to WebHDFS/HttpFS service. Defaults to " +
                          "the WebHDFS URL on the NameNode.",
-                         type=str, default=None),
+                         type=str, default="http://localhost:50070/webhdfs/v1"),
       NN_KERBEROS_PRINCIPAL=Config("nn_kerberos_principal", help="Kerberos principal for NameNode",
                                    default="hdfs", type=str),
       DN_KERBEROS_PRINCIPAL=Config("dn_kerberos_principal", help="Kerberos principal for DataNode",