Browse Source

HUE-96. Change service name of HDFS and MR client libraries to include string "HUE Plugin"

Philip Zeyliger 15 years ago
parent
commit
a8b930050f

+ 3 - 2
desktop/libs/hadoop/src/hadoop/fs/hadoopfs.py

@@ -99,8 +99,9 @@ class HadoopFileSystem(object):
     self.hadoop_bin_path = hadoop_bin_path
     self._resolve_hadoop_path()
 
-    self.nn_client = thrift_util.get_client(Namenode.Client, host, thrift_port, service_name="HDFS Namenode",
-                                            timeout_seconds=NN_THRIFT_TIMEOUT)
+    self.nn_client = thrift_util.get_client(Namenode.Client, host, thrift_port,
+        service_name="HDFS Namenode HUE Plugin",
+        timeout_seconds=NN_THRIFT_TIMEOUT)
 
     # The file systems are cached globally.  We store
     # user information in a thread-local variable so that

+ 2 - 1
desktop/libs/hadoop/src/hadoop/job_tracker.py

@@ -48,7 +48,8 @@ class LiveJobTracker(object):
 
   def __init__(self, host, thrift_port):
     self.client = thrift_util.get_client(
-      Jobtracker.Client, host, thrift_port, service_name="Hadoop MR JobTracker",
+      Jobtracker.Client, host, thrift_port,
+      service_name="Hadoop MR JobTracker HUE Plugin",
       timeout_seconds=JT_THRIFT_TIMEOUT)
     self.host = host
     self.thrift_port = thrift_port