Commit c8bf6907 by rmani Committed by nixonrodrigues

ATLAS-2475:HBase Atlas import utility : importing using -t default:table fails…

ATLAS-2475:HBase Atlas import utility : importing using -t default:table fails when namespace is default
parent ef36a262
......@@ -90,7 +90,7 @@ public class ImportHBaseEntities extends ImportHBaseEntitiesBase {
public String importTable(final String tableName) throws Exception {
byte[] tblName = tableName.getBytes();
HTableDescriptor htd = hbaseAdmin.getTableDescriptor(tblName);
String nsName = htd.getTableName().getNamespaceAsString();
String nsName = htd.getTableName().getNameWithNamespaceInclAsString();
NamespaceDescriptor nsDescriptor = hbaseAdmin.getNamespaceDescriptor(nsName);
AtlasEntity nsEntity = createOrUpdateNameSpace(nsDescriptor);
HColumnDescriptor[] hcdts = htd.getColumnFamilies();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment