1 save data to hbase by hive,required jars as follows
 cp /opt/hbase/lib/protobuf-java-2.4.0a.jar $HIVE_HOME/lib/
 cp /opt/hbase/hbase-0.94.7.jar       $HIVE_HOME/lib/
 cp /opt/hbase/hbase-0.94.7-tests.jar       $HIVE_HOME/lib/
 cp /opt/hbase/lib/zookeeper-3.4.5.jar      $HIVE_HOME/lib

2 hive configuration
  hive-site.xml
 <property>
   <name>hive.exec.scratchdir</name>
   <value>hdfs://masterIP:9000/hive/tmp/${user.name}</value>
   <description>Scratch space for Hive jobs</description>
 </property>
 <property>
   <name>hive.metastore.warehouse.dir</name>
   <value>hdfs://masterIP:9000/hive/warehouse</value>
   <description>location of default database for the warehouse</description>
 </property>
 <property>
   <name>hive.querylog.location</name>
   <value>$HIVE_HOME/logs</value>
 </property>
 <!--
  same like hive-env configuration HIVE_AUX_JARS_PATH,choose one type
  <property>
   <name>hive.aux.jars.path</name>
   <value>file:///$HIVE_HOME/lib/hive-hbase-handler-0.10.0.jar,file:///$HIVE_HOME/lib/hbase-0.94.7.jar,file:///$HIVE_HOME/lib/zookeeper-3.4.5.jar,file:///$HIVE_HOME/lib/protobuf-java-2.4.0a.jar</value>
 </property>-->

hive-env.xml
 export HADOOP_HEAPSIZE=1024
 HADOOP_HOME=
 export HIVE_CONF_DIR=
 export HIVE_AUX_JARS_PATH=$HIVE_HOME/lib

  hive-log4j.properties
 log4j.appender.EventCounter=org.apache.hadoop.log.metrics.EventCounter