Skip to content

Commit

Permalink
Merge branch 'load-tables-from-module' of github.com:hbase-sculptor/s…
Browse files Browse the repository at this point in the history
…culptor into load-tables-from-module
  • Loading branch information
uprush committed Mar 18, 2012
2 parents 3787435 + aa6edef commit 305fd45
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion framework/ruby/classes/Initialize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
log_level = org.apache.log4j.Level::ERROR
org.apache.log4j.Logger.getLogger("org.apache.zookeeper").setLevel(log_level)
org.apache.log4j.Logger.getLogger("org.apache.hadoop").setLevel(log_level)
org.apache.log4j.Logger.getLogger("sculptor").setLevel(log_level)
# org.apache.log4j.Logger.getLogger("sculptor").setLevel(log_level)

$tableNameList = [];
$fieldNameList = [];
Expand Down
12 changes: 4 additions & 8 deletions framework/ruby/sculptor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#Sculptorのメインスクリプト
#
require 'etc'
require 'pp'

$userName = Etc.getlogin;

Expand Down Expand Up @@ -93,15 +94,10 @@
end
end
rescue SyntaxError => e
eputs "不正な値が入力されました";
rescue NativeException => e
eputs "apiエラーです";
eputs e.cause
rescue HBaseClientException => e
eputs e.getMessage();
eputs "Command syntax error.";
rescue => e
# TODO エラーハンドリング
p e;
pp e;
pp e.backtrace
end
#-eならばループしない
if(ARGV[0]) then
Expand Down
7 changes: 6 additions & 1 deletion sculptor
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ bin=`dirname "$0"`
bin=`cd "$bin"; pwd`

HBASE_HOME=/usr/local/hbase/current
HBASE_CLASSPATH=$HBASE_CLASSPATH:$bin/sculptor-0.0.1.jar

# add sculptor.jar to HBase classpath
for jar in $bin/sculptor-*.jar
do
HBASE_CLASSPATH=$HBASE_CLASSPATH:$jar
done

# add user defined libraries
if [ -z "$SCULPTOR_AUXLIB_PATH" ]; then
Expand Down

0 comments on commit 305fd45

Please sign in to comment.