daily pastebin goal
28%
SHARE
TWEET

copytable_scala

ans4175 Jan 9th, 2015 (edited) 183 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. object Hello {
  2.   val hbaseMaster = "127.0.0.1:60000"
  3.   val hbaseZookeper = "127.0.0.1"
  4.   def main(args: Array[String]): Unit = {
  5.         val conf = HBaseConfiguration.create()
  6.         conf.set("hbase.master", hbaseMaster)
  7.         conf.set("hbase.zookeeper.quorum", hbaseZookeper)
  8.         val hbaseAdmin = new HBaseAdmin(conf)
  9.         //copytable
  10.         CopyTable.main(Array("--peer.adr=127.0.0.1:2181:/hbase", "--new.name=nama_tabel_tujuan", "nama_tabel_original"))
  11.  }
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top