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

HUE-215. Change default thrift server port

Philip Zeyliger 15 жил өмнө
parent
commit
91ea674d30

+ 4 - 4
desktop/core/src/desktop/lib/conf_test.py

@@ -80,7 +80,7 @@ class ConfigTest(unittest.TestCase):
             members=dict(HOST = Config("host", help="Hostname for the NN",
                                        required=True),
                          PORT = Config("port", help="Thrift port for the NN",
-                                       type=int, default=9090))))))
+                                       type=int, default=10090))))))
     self.conf = self.conf.bind(
       load_confs([configobj.ConfigObj(infile=StringIO(self.CONF_ONE)),
                   configobj.ConfigObj(infile=StringIO(self.CONF_TWO))]),
@@ -105,7 +105,7 @@ class ConfigTest(unittest.TestCase):
     self.assertEquals(['clustera', 'clusterb'], sorted(self.conf.CLUSTERS.keys()))
     self.assertTrue("clustera" in self.conf.CLUSTERS)
     self.assertEquals("localhost", self.conf.CLUSTERS['clustera'].HOST.get())
-    self.assertEquals(9090, self.conf.CLUSTERS['clustera'].PORT.get())
+    self.assertEquals(10090, self.conf.CLUSTERS['clustera'].PORT.get())
 
   def testFullKeyName(self):
     self.assertEquals(self.conf.REQ.get_fully_qualifying_key(), 'req')
@@ -148,7 +148,7 @@ class ConfigTest(unittest.TestCase):
       self.assertEquals(123, self.conf.CLUSTERS['clustera'].PORT.get())
     finally:
       close()
-    self.assertEquals(9090, self.conf.CLUSTERS['clustera'].PORT.get())
+    self.assertEquals(10090, self.conf.CLUSTERS['clustera'].PORT.get())
 
     # Test something inside a config section that wasn't provided in conf file
     self.assertEquals("baz_default", self.conf.SOME_SECTION.BAZ.get())
@@ -198,7 +198,7 @@ class ConfigTest(unittest.TestCase):
           Hostname for the NN
 
         Key: port (optional)
-          Default: 9090
+          Default: 10090
           Thrift port for the NN
 
     Key: dynamic_default (optional)

+ 1 - 1
desktop/libs/hadoop/java/src/java/org/apache/hadoop/thriftfs/NamenodePlugin.java

@@ -67,7 +67,7 @@ public class NamenodePlugin
    * Default address and port this server will bind to, in case nothing is found
    * in the configuration object.
    */
-  public static final String DEFAULT_THRIFT_ADDRESS = "0.0.0.0:9090";
+  public static final String DEFAULT_THRIFT_ADDRESS = "0.0.0.0:10090";
 
   private NameNode namenode;
 

+ 1 - 1
desktop/libs/hadoop/java/src/java/thriftfs-default.xml

@@ -25,7 +25,7 @@
 <configuration>
 <property>
   <name>dfs.thrift.address</name>
-  <value>0.0.0.0:9090</value>
+  <value>0.0.0.0:10090</value>
   <description>
     The address where the Thrift namenode server will listen to.
     If the port is 0 then the server will start on a free port.

+ 1 - 1
desktop/libs/hadoop/java/src/test/org/apache/hadoop/thriftfs/Helper.java

@@ -61,7 +61,7 @@ public class Helper {
   /** Create a configuration object for the unit tests. */
   public static Configuration createConf() {
     Configuration conf = new Configuration();
-    conf.set(NAMENODE_ADDRESS_PROPERTY, "127.0.0.1:9090");
+    conf.set(NAMENODE_ADDRESS_PROPERTY, "127.0.0.1:10090");
     conf.set(DATANODE_ADDRESS_PROPERTY, "127.0.0.1:0");
     conf.set("slave.host.name", "127.0.0.1");
     conf.setStrings("dfs.namenode.plugins", NamenodePlugin.class.getName());

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

@@ -105,7 +105,7 @@ HDFS_CLUSTERS = UnspecifiedConfigSection(
     help="Information about a single HDFS cluster",
     members=dict(
       NN_HOST=Config("namenode_host", help="IP for name node"),
-      NN_THRIFT_PORT=Config("thrift_port", help="Thrift port for name node", default=9090,
+      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)

+ 2 - 2
docs/manual.txt

@@ -164,7 +164,7 @@ Add the following configuration properties to `hdfs-site.xml`:
 </property>
 <property>
   <name>dfs.thrift.address</name>
-  <value>0.0.0.0:9090</value>
+  <value>0.0.0.0:10090</value>
 </property>
 -----
 
@@ -251,7 +251,7 @@ You can confirm that the plugins are running correctly by tailing the daemon log
 $ tail --lines=500 /var/log/hadoop-0.20/hadoop*namenode*.log | grep ThriftPlugin
 2009-09-28 16:30:44,337 INFO org.apache.hadoop.thriftfs.ThriftPluginServer: Starting Thrift server
 2009-09-28 16:30:44,419 INFO org.apache.hadoop.thriftfs.ThriftPluginServer:
-Thrift server listening on 0.0.0.0:9090
+Thrift server listening on 0.0.0.0:10090
 ----
 
 [TIP]

+ 26 - 0
docs/release-notes/release-notes-1.1.txt

@@ -0,0 +1,26 @@
+Hue v1.1, released Oct ??, 2010
+===============================
+
+Hue is a web interface for Hadoop, and a platform for building custom
+applications with a rich framework. The 1.1 is a minor release, largely
+focused on adding security support to Hue, matching the security
+support of Cloudera's Distribution for Hadoop 3, beta 3.
+
+Notable Changes and Caveats
+===========================
+* Hue 1.1 only works with CDH3b3 or newer.  CDH2 and earlier betas of CDH3
+will not work.
+* The default port for the namenode plugins has changed from 9090 to 10090.
+
+
+Application Compatability
+-------------------------
+
+
+List of All Bugs Fixed
+----------------------
+
+
+Project Information
+-------------------
+Homepage: http://github.com/cloudera/hue

+ 1 - 1
example-hadoop-confs/conf.pseudo-hue/hdfs-site.xml

@@ -31,7 +31,7 @@
   </property>
   <property>
     <name>dfs.thrift.address</name>
-    <value>0.0.0.0:9090</value>
+    <value>0.0.0.0:10090</value>
   </property>  
 </configuration>
 

+ 1 - 1
tools/scripts/configure-hadoop.sh

@@ -77,7 +77,7 @@ function write_hadoop_config() {
 </property>
 <property>
   <name>dfs.thrift.address</name>
-  <value>${MASTER_IP}:9090</value>
+  <value>${MASTER_IP}:10090</value>
 </property>
 <property>
   <name>jobtracker.thrift.address</name>