GithubHelp home page GithubHelp logo

Comments (4)

xiaolezhu avatar xiaolezhu commented on May 28, 2024

I tried using two ways to write to hbase:

  1. standard spark API saveAsNewAPIHadoopDataset.
  2. use spark-hbase-connector.

They both failed with the same issue that it was hanging there after "Created table instance for testTable" without any error messages:

Log
16/03/24 23:26:00 INFO ClientCnxn: Session establishment complete on server bpaascp1devhbasezk01.bpaas.local/192.168.23.33:2181, sessionid = 0x152844be97f6ddf, negotiated timeout = 40000
16/03/24 23:26:00 INFO ZooKeeperRegistry: ClusterId read in ZooKeeper is null
16/03/24 23:26:00 INFO TableOutputFormat: Created table instance for testTable

By looking into the log closely - there is one more line of Log says: ClusterId read in ZooKeeper is null. The issue is because that *zookeeper.znode.parent * was not set with proper value - *zookeeper.znode.parent * tells which znode keeps the data (and address for HMaster) for the cluster.

The value of zookeeper.znode.parent in HBASE_CONF/hbase-site.xml. After setting the proper value into HBaseConfiguration, the issue was gone by using saveAsNewAPIHadoopDataset.

However, in spark-hbase-connector there will need to be code changes to set value of zookeeper.znode.parent, similar to how spark.hbase.host is set.

from spark-hbase-connector.

avihoo avatar avihoo commented on May 28, 2024

I'm afraid I don't have the zookeeper.znode.parent property set in my HBASE_CONF/hbase-site.xml.
What should I do in order to make it still save from spark to hbase?

from spark-hbase-connector.

nicolaferraro avatar nicolaferraro commented on May 28, 2024

Version 1.0.3 of the connector (already available on maven) supports the hbase-site.xml file for specifying a custom configuration.

from spark-hbase-connector.

xiaolezhu avatar xiaolezhu commented on May 28, 2024

Great to know :)

from spark-hbase-connector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.