#if [ -z "${HCAT_HOME}" ]; then # HCAT_HOME=/usr/lib/hcatalog #fi
## Moved to be a runtime check in sqoop. #if [ ! -d "${HCAT_HOME}" ]; then # echo "Warning: $HCAT_HOME does not exist! HCatalog jobs will fail." # echo 'Please set $HCAT_HOME to the root of your HCatalog installation.' #fi
# Add HCatalog to dependency list #if [ -e "${HCAT_HOME}/bin/hcat" ]; then # TMP_SQOOP_CLASSPATH=${SQOOP_CLASSPATH}:`${HCAT_HOME}/bin/hcat -classpath` # if [ -z "${HIVE_CONF_DIR}" ]; then # TMP_SQOOP_CLASSPATH=${TMP_SQOOP_CLASSPATH}:${HIVE_CONF_DIR} # fi # SQOOP_CLASSPATH=${TMP_SQOOP_CLASSPATH} #fi
Logging initialized using configuration in jar:file:/Users/xiaolongyuan/Documents/hive-0.13.1/lib/hive-common-0.13.1.jar!/hive-log4j.properties hive (default)> create database test; OK Time taken: 0.765 seconds
xiaolongyuan@xiaolongdeMacBook-Air bin$ hbase shell HBase Shell; enter 'help<RETURN>'for list of supported commands. Type "exit<RETURN>" to leave the HBase Shell Version 0.98.4-hadoop1, r890e852ce1c51b71ad180f626b71a2a1009246da, Mon Jul 1418:54:31 PDT 2014
hbase(main):001:0> scan 'student' 2014-08-1720:21:36.166 java[81679:1903] Unable to load realm info from SCDynamicStore SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/Users/xiaolongyuan/Documents/hbase-0.98.4-hadoop1/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/Users/xiaolongyuan/Documents/hadoop-1.2.1/lib/slf4j-log4j12-1.4.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. ROW COLUMN+CELL 1 column=s_info:s_age, timestamp=1408250793626, value=12 1 column=s_info:s_class, timestamp=1408250793626, value=class1 1 column=s_info:s_name, timestamp=1408250793626, value=tom 2 column=s_info:s_age, timestamp=1408250793626, value=16 2 column=s_info:s_class, timestamp=1408250793626, value=class2 2 column=s_info:s_name, timestamp=1408250793626, value=kitty 2 row(s) in0.3350 seconds