Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> how to add hdfs path into hbase table attribute?


Copy link to this message
-
how to add hdfs path into hbase table attribute?
i want set hdfs path ,AND add the path into hbase,here is my code

 Path path = new Path("hdfs:////192.168.10.22:9000/alex/test.jar");
  System.out.println(":
"+path.toString()+"|"+TestMyCo.class.getCanonicalName()+"|"+Coprocessor.PRIORITY_USER);

  htd.setValue("COPROCESSOR$1", path.toString()+"|"
    + TestMyCo.class.getCanonicalName()+"|"+Coprocessor.PRIORITY_USER);

and the real value which i find is

hbase(main):012:0> describe 'mytest'
DESCRIPTION
ENABLED
 {NAME => 'mytest', COPROCESSOR$1 => 'hdfs:/
192.168.10.22:9000/alex/test.jar|TestMyCo|1073741823', FAMILIES => [{N true
 AME => 'myfl', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'NONE',
REPLICATION_SCOPE => '0', VERSIONS => '3', C
 OMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL => '2147483647',
KEEP_DELETED_CELLS => 'false', BLOCKSIZE => '6553
 6', IN_MEMORY => 'false', ENCODE_ON_DISK => 'true', BLOCKCACHE => 'true'}]}
1 row(s) in 0.0930 seconds