Я испытываю трудности при создании таблицы HBase, - PullRequest
0 голосов
/ 02 мая 2020

* Я новичок в HBase, поэтому я просто придумаю требования HBase в текущем рабочем проекте, где мне нужно создать таблицу и выполнить некоторые операции вставки и обновления в ближайшее время, поэтому для этого я пытался создать таблицу через программу java и обнаружил, что наступает следующее исключение, я знаю, что многие ребята уже давно работают в HBase. Ниже java код:

        public static void main(String[] args) throws Exception {
            Configuration conf = HBaseConfiguration.create();
            conf.set("hbase.zookeeper.quorum", "127.0.0.1");
            conf.set("hbase.zookeeper.property.clientPort","2181");
            conf.set("zookeeper.znode.parent", "/hbase-unsecure");
            conf.set("hbase.master", "127.0.0.1:16000");
            //HTable usersTable = new HTable(conf, "users");
            //HBaseAdmin hbase = new HBaseAdmin(conf);
            @SuppressWarnings("resource")
            HBaseAdmin admin = new HBaseAdmin(conf);
            // Instantiating table descriptor class
            HTableDescriptor tableDescriptor = new HTableDescriptor(TableName.valueOf("emp"));
            // Adding column families to table descriptor
            tableDescriptor.addFamily(new HColumnDescriptor("personal"));
            tableDescriptor.addFamily(new HColumnDescriptor("professional"));
            System.out.println(" Table created started ");
            // Execute the table through admin
            admin.createTable(tableDescriptor);
            System.out.println(" Table created ");        
        }

Я получаю следующие журналы: но моя таблица не создается, когда я проверил HBase:

    2020-05-02 20:50:55 INFO  ZooKeeper:100 - Client environment:user.dir=C:\Users\xyz\Documents\share\requestreciever
        2020-05-02 20:50:55 INFO  ZooKeeper:438 - Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=90000 watcher=hconnection-0x2bbf180e0x0, quorum=127.0.0.1:2181, baseZNode=/hbase-unsecure
        2020-05-02 20:50:56 INFO  ClientCnxn:975 - Opening socket connection to server 127.0.0.1/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
        2020-05-02 20:50:56 INFO  ClientCnxn:852 - Socket connection established, initiating session, client: /127.0.0.1:50553, server: 127.0.0.1/127.0.0.1:2181
        2020-05-02 20:50:56 INFO  ClientCnxn:1235 - Session establishment complete on server 127.0.0.1/127.0.0.1:2181, sessionid = 0x171d22e316a0075, negotiated timeout = 40000
        2020-05-02 20:50:57 INFO  deprecation:1174 - hadoop.native.lib is deprecated. Instead, use io.native.lib.available
         Table created started 
        2020-05-02 20:51:46 INFO  RpcRetryingCaller:142 - Call exception, tries=10, retries=35, started=48551 ms ago, cancelled=false, msg=
 2020-05-02 20:51:46 INFO  RpcRetryingCaller:142 - Call exception, tries=10, retries=35, started=48551 ms ago, cancelled=false, msg=
 2020-05-02 20:51:46 INFO  RpcRetryingCaller:142 - Call exception, tries=11, retries=35, started=48551 ms ago, cancelled=false, msg=
 2020-05-02 20:51:46 INFO  RpcRetryingCaller:142 - Call exception, tries=12, retries=35, started=48551 ms ago, cancelled=false, msg=
 2020-05-02 20:51:46 INFO  RpcRetryingCaller:142 - Call exception, tries=13, retries=35, started=48551 ms ago, cancelled=false, msg=
    ......
...