- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How can I pass hbase settings to the phoenix shell as command line arguments?
- Labels:
-
Apache HBase
-
Apache Phoenix
Created ‎02-06-2019 05:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Created ‎02-07-2019 11:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
Created ‎02-07-2019 11:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
