Przeglądaj źródła

PR826 [hdfs] Tweak imports to just use the variable name

Romain Rigaux 6 lat temu
rodzic
commit
83f43641bc
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      desktop/libs/hadoop/src/hadoop/hdfs_site.py

+ 2 - 2
desktop/libs/hadoop/src/hadoop/hdfs_site.py

@@ -53,10 +53,10 @@ def get_umask_mode():
   return int(umask, 8)
 
 def get_webhdfs_ssl():
-  settings = {"protocol": "http", "port": hadoop.conf.DEFAULT_NN_HTTP_PORT}
+  settings = {"protocol": "http", "port": DEFAULT_NN_HTTP_PORT}
   if get_conf().get(_CNF_HTTP_POLICY, 'http') == "HTTPS_ONLY":
     settings["protocol"] = 'https'
-    settings["port"] = get_conf().get(_CNF_WEBHDFS_HTTPS_PORT, hadoop.conf.DEFAULT_NN_HTTP_PORT)
+    settings["port"] = get_conf().get(_CNF_WEBHDFS_HTTPS_PORT, DEFAULT_NN_HTTP_PORT)
   return settings
 
 def get_nn_sentry_prefixes():