Advertisement
ans4175

copytable_scala

Jan 9th, 2015
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.43 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement