Thursday, 3 March 2016

Create Table in HBase using Linux Script



#!/bin/bash

TABLE="sample"

exec hbase shell <<EOF
     create "${TABLE}",'f1'
EOF

save this script as .sh file and run. It will create a table in HBase.

No comments:

Post a Comment