Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

How can I pass hbase settings to the phoenix shell as command line arguments?

avatar
New Member

When I execute quires that return large results in the phoenix shell (sqlline.py), I get the following error:

org.apache.hadoop.hbase.UnknownScannerException: org.apache.hadoop.hbase.UnknownScannerException: Name: 33164, already closed?

Which will probably be resolved by the solution posted here. However, I do not have permission to edit the hbase-site.xml so I need to pass the settings as command line arguments when starting the phoenix shell. Previously we have used the `--conf hbase.rpc.timeout=xxx` syntax on other jobs, but I can't find a way to pass that into the phoenix shell.

So my question is: Can I pass those settings as arguments when starting the sqlline.py or can I set them while already inside?

1 ACCEPTED SOLUTION

avatar
Expert Contributor

You can copy hbase-site.xml in your directory and make changes in that hbase-site.xml.

Then export below property and launch sqlline.

export HBASE_CONF_DIR=<new directory where you have copied hbase-site.xml>

View solution in original post

1 REPLY 1

avatar
Expert Contributor

You can copy hbase-site.xml in your directory and make changes in that hbase-site.xml.

Then export below property and launch sqlline.

export HBASE_CONF_DIR=<new directory where you have copied hbase-site.xml>