[ 
https://issues.apache.org/jira/browse/PHOENIX-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14529064#comment-14529064
 ] 

Serhiy Bilousov commented on PHOENIX-1904:
------------------------------------------

I was trying 4.4  and came across this issue 
We had phoenix-client folder with phoenix-*-client.jar  /bin folder under. 
Than we used sqlline.py to run our schema creation scripts.
After I updated bin folder from 4.4 and phoenix client with 
phoenix-4.4.0-HBase-0.98-client.jar when I try to run sqlline.py script.sql I 
am getting following errors:

{noformat}
Applying _phoenixschema/001_.sql
Traceback (most recent call last):
  File "phoenix-client/bin/psql.py", line 27, in <module>
    phoenix_utils.setPath()
  File "---/phoenix-client/bin/phoenix_utils.py", line 94, in setPath
    phoenix_queryserver_jar = 
findFileInPathWithoutRecursion(PHOENIX_QUERYSERVER_JAR_PATTERN, 
os.path.join(current_dir, "..", "lib"))
  File "---/phoenix-client/bin/phoenix_utils.py", line 45, in 
findFileInPathWithoutRecursion
    files = [f for f in os.listdir(path) if 
os.path.isfile(os.path.join(path,f))]
OSError: [Errno 2] No such file or directory: '---/phoenix-client/bin/../lib'
{noformat}

I probably missing something ?
Do I need to deploy phoenix-server-4.4.0-HBase-0.98-runnable.jar  on server 
side even if I do not use query server yet ?

Thank you,

> bin scripts use incorrect variable for locating hbase conf
> ----------------------------------------------------------
>
>                 Key: PHOENIX-1904
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1904
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Nick Dimiduk
>            Assignee: Nick Dimiduk
>             Fix For: 5.0.0, 4.4.0
>
>         Attachments: PHOENIX-1904.00.patch, PHOENIX-1904.00.patch, 
> PHOENIX-1904.00.patch, PHOENIX-1904.00.patch
>
>
> in bin/phoenix_utils.py, we're building a classpath based on an incorrect 
> environment variable. 'HBASE_CONF_PATH' is used:
> https://github.com/apache/phoenix/blob/master/bin/phoenix_utils.py#L68
>  While bigtop is registering 'HBASE_CONF_DIR' for us.
> https://github.com/apache/bigtop/blob/master/bigtop-packages/src/common/hbase/hbase.default#L17
> There's even a local work-around for this problem in end2endTest.py
> https://github.com/apache/phoenix/blob/master/bin/end2endTest.py#L37



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to