Explorar o código

AMBARI-4070. HBase 2.0._ stops after starting

Andrew Onischuk %!s(int64=11) %!d(string=hai) anos
pai
achega
5d9f9ed593

+ 1 - 1
ambari-server/src/main/resources/stacks/HDP/2.0._/metainfo.xml

@@ -17,6 +17,6 @@
 -->
 <metainfo>
     <versions>
-	  <active>true</active>
+	  <active>false</active>
     </versions>
 </metainfo>

+ 1 - 1
ambari-server/src/main/resources/stacks/HDP/2.0._/services/HBASE/configuration/hbase-site.xml

@@ -22,7 +22,7 @@
 <configuration>
   <property>
     <name>hbase.rootdir</name>
-    <value></value>
+    <value>hdfs://localhost:8020/apps/hbase/data</value>
     <description>The directory shared by region servers and into
     which HBase persists.  The URL should be 'fully-qualified'
     to include the filesystem scheme.  For example, to specify the

+ 6 - 4
ambari-server/src/main/resources/stacks/HDP/2.0._/services/HBASE/package/scripts/hbase_master.py

@@ -55,13 +55,15 @@ class HbaseMaster(Script):
     )
     
 def main():
-  command_type = sys.argv[1] if len(sys.argv)>1 else "start"
+  command_type = sys.argv[1] if len(sys.argv)>1 else "install"
   print "Running "+command_type
-  command_data_file = '/root/workspace/HBase/input.json'
-  basedir = '/root/workspace/HBase/main'
-  sys.argv = ["", command_type, command_data_file, basedir]
+  command_data_file = '/var/lib/ambari-agent/data/command-3.json'
+  basedir = '/root/ambari/ambari-server/src/main/resources/stacks/HDP/2.0._/services/HBASE/package'
+  stroutputf = '/1.txt'
+  sys.argv = ["", command_type, command_data_file, basedir, stroutputf]
   
   HbaseMaster().execute()
   
 if __name__ == "__main__":
   HbaseMaster().execute()
+  #main()