HTableDescriptor htd = new HTableDescriptor(table);
The above statement gives the htable descriptor as deprecated
I have searched so many places but unable to get alternative for this.... any help is appreciated
I guess you are using the constructor with a string parameter i.e. your argument variable 'table' is a string:
HTableDescriptor(String name); //Deprecated
You need to construct a table descriptor specifying a TableName object as:
HTableDescriptor(TableName name);
For further details related to TableName object, you can use this link: https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/TableName.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With