blob: 7791801a1cfab983f815e2dfd6969d01927a32b9 [file] [log] [blame]
CREATE DATABASE hbaseDB;
-- EXCLUDE_HADOOP_MAJOR_VERSIONS(0.20, 0.20S)
-- Hadoop 0.23 changes the behavior FsShell on Exit Codes
-- In Hadoop 0.20
-- Exit Code == 0 on success
-- Exit code < 0 on any failure
-- In Hadoop 0.23
-- Exit Code == 0 on success
-- Exit Code < 0 on syntax/usage error
-- Exit Code > 0 operation failed
CREATE TABLE hbaseDB.hbase_table_0(key int, value string)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf:string")
TBLPROPERTIES ("hbase.table.name" = "hbase_table_0");
dfs -ls ../build/ql/tmp/hbase/hbase_table_0;
DROP DATABASE IF EXISTS hbaseDB CASCADE;
dfs -ls ../build/ql/tmp/hbase/hbase_table_0;