Index: bin/hirb.rb =================================================================== --- bin/hirb.rb (revision 1130916) +++ bin/hirb.rb (working copy) @@ -76,6 +76,7 @@ elsif arg == '-d' || arg == '--debug' log_level = org.apache.log4j.Level::DEBUG $fullBackTrace = true + @DEBUG = true puts "Setting DEBUG log level..." else # Presume it a script. Save it off for running later below @@ -107,8 +108,14 @@ # Formatter takes an :output_stream parameter, if you don't want STDOUT. @formatter = Shell::Formatter::Console.new +def dumpConfig + sorted = java.util.TreeMap.new(@hbase.configuration.getProps()) + puts sorted.entrySet().each{ |entry| puts entry } +end + # Setup the HBase module. Create a configuration. @hbase = Hbase::Hbase.new +dumpConfig if @DEBUG # Setup console @shell = Shell::Shell.new(@hbase, @formatter) @@ -134,6 +141,7 @@ else @shell.debug = true conf.back_trace_limit = 100 + dumpConfig end debug? end