归档: 2017/7

Hbase-Spark读写HBase数据

1.Spark写入数据到HBase HBase表结构 12##创建hbase表create 'user','basic' 定义HBase定义 12345val hbaseConf=HBaseConfiguration.create()//zookeeper端口hbaseConf.set("hbase.zookeeper.property.clientPort", "2181")//zookeeper地址hbaseConf.set("hbase.zookeeper.quorum", "hadoop01,hadoop02,hadoop03")