Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 13th, 2011  |  syntax: None  |  size: 1.97 KB  |  views: 129  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Jignesh-MacBookPro:hadoop-hbase hadoop-user$ bin/hbase --config ./config shell
  2. HBase Shell; enter 'help<RETURN>' for list of supported commands.
  3. Type "exit<RETURN>" to leave the HBase Shell
  4. Version 0.90.4, r1150278, Sun Jul 24 15:53:29 PDT 2011
  5.  
  6. hbase(main):001:0> status
  7.  
  8. ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: HBase is able to connect to ZooKeeper but the connection closes immediately. This could be a sign that the server has too many connections (30 is the default). Consider inspecting your ZK server logs for that error and then make sure you are reusing HBaseConfiguration as often as you can. See HTable's javadoc for more information.
  9.  
  10. Here is some help for this command:
  11. Show cluster status. Can be 'summary', 'simple', or 'detailed'. The
  12. default is 'summary'. Examples:
  13.  
  14.   hbase> status
  15.   hbase> status 'simple'
  16.   hbase> status 'summary'
  17.   hbase> status 'detailed'
  18.  
  19.  
  20. -----------------------------------------------------------------------------------------------------------------------
  21.  
  22. Jps command shows me as follows:
  23.  
  24. Jignesh-MacBookPro:hadoop-hbase hadoop-user$ jps
  25. 38814 SecondaryNameNode
  26. 40394 Jps
  27. 38878 JobTracker
  28. 38726 DataNode
  29. 38639 NameNode
  30. 40312 HMaster
  31. 38964 TaskTracker
  32.  
  33.  
  34. my hdfs-site.xml looks like
  35.  
  36. <?xml version="1.0"?>
  37. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  38. -----------------------------------------------------------------------------------------------------------------------
  39. <!-- Put site-specific property overrides in this file. -->
  40.  
  41. <configuration>
  42.      <property>
  43.          <name>dfs.replication</name>
  44.          <value>1</value>
  45.            <description>Default block replication.
  46.   The actual number of replications can be specified when the file is created.
  47.   The default is used if replication is not specified in create time.
  48.                  </description>
  49.      </property>
  50.      <property>
  51.         <name>dfs.support.append</name>
  52.         <value>true</value>
  53.      </property>
  54.      
  55. </configuration>
  56.