You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@phoenix.apache.org by Will Xu <wx...@hortonworks.com> on 2017/05/01 17:25:13 UTC

Re: I cant get the latest phoenix to work in docker

If you run
$> hbase zkcli
$>ls /

You should be able to see [zookeeper, hbase]
If you don’t see this, then it means hbase service is not started or did not properly register with zookeeper.

Best thing to do would be remove the images of avapno/apache-phoenix and try pulling the docker image again.

I used this command and it worked
docker run -it --name phoenix -p 8765:8765 avapno/apache-phoenix

Regards,
Will
From: Cheyenne Forbes <ch...@gmail.com>
Reply-To: "user@phoenix.apache.org" <us...@phoenix.apache.org>
Date: Saturday, April 29, 2017 at 1:35 PM
To: "user@phoenix.apache.org" <us...@phoenix.apache.org>
Subject: I cant get the latest phoenix to work in docker

docker file and other files: https://github.com/CheyenneForbes/docker-apache-phoenix
the connection just hangs when I try to use the query server and if I run any command in hbase shell I get "ERROR: Can't get master address from ZooKeeper; znode data == null"

Regards,

Cheyenne O. Forbes

Re: I cant get the latest phoenix to work in docker

Posted by Cheyenne Forbes <ch...@gmail.com>.
I fixed it, it was due to "hbase.rootdir" in hbase-site.xml having
"hdfs://localhost:9000/hbase" instead "hdfs://my_hostname:9000/hbase"

I was struggling to find a docker image with Phoenix 4.10 so I decided to
make one, there it is for anyone who needs one

Regards,

Cheyenne O. Forbes


On Mon, May 1, 2017 at 7:54 PM, Cheyenne Forbes <
cheyenne.osanu.forbes@gmail.com> wrote:

> I see "master.HMaster: Failed to become active master
> java.net.ConnectException: Call From 7a2df40d1596/172.17.0.2 to
> localhost:9000 failed on connection exception: java.net.ConnectException:
> Connection refused; For more details see:  http://wiki.apache.org/hadoop/
> ConnectionRefused"
>
> Regards,
>
> Cheyenne O. Forbes
>
> Chief Executive Officer
> Avapno Omnitech, Limited
>
> Chief Operating Officer
> Avapno Solutions Co. Limited
>
> Chief Technology Officer
> ZirconOne Corperation
>
> Chairman
> Avapno Assets, LLC
>
> Bethel Town P.O
> Westmoreland
> Jamaica
>
> Email: cheyenne.osanu.forbes@gmail.com
> Mobile: +1 (876) 881-7889 <876-881-7889>
> Landline: +1 (876) 957-1821 <%28876%29%20957-1821>
> skype: cheyenne.forbes1
>
>
> On Mon, May 1, 2017 at 6:55 PM, York, Zach <zy...@amazon.com> wrote:
>
>> This means that the HBase Master can’t connect to ZooKeeper. Can you
>> check the HBase logs to see any exceptions there?
>>
>>
>>
>> *From: *Cheyenne Forbes <ch...@gmail.com>
>> *Reply-To: *"user@phoenix.apache.org" <us...@phoenix.apache.org>
>> *Date: *Monday, May 1, 2017 at 4:26 PM
>> *To: *"user@phoenix.apache.org" <us...@phoenix.apache.org>
>> *Subject: *Re: I cant get the latest phoenix to work in docker
>>
>>
>>
>> Also when I run "list" in "hbase shell" I get "ERROR: Can't get master
>> address from ZooKeeper; znode data == null"
>>
>>
>> Regards,
>>
>>
>>
>> Cheyenne O. Forbes
>>
>>
>>
>>
>>
>> On Mon, May 1, 2017 at 4:30 PM, Cheyenne Forbes <
>> cheyenne.osanu.forbes@gmail.com> wrote:
>>
>> I see [zookeeper, hbase] but when I try to use
>> "$PHOENIX_HOME/bin/sqlline-thin.py localhost" I am gettng
>> java.lang.RuntimeException: org.apache.phoenix.shaded.org.
>> apache.http.conn.HttpHostConnectException: Connect to localhost:8765
>> [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection
>> refused
>>
>>
>> Regards,
>>
>>
>>
>> Cheyenne O. Forbes
>>
>>
>>
>>
>>
>> On Mon, May 1, 2017 at 12:25 PM, Will Xu <wx...@hortonworks.com> wrote:
>>
>> If you run
>>
>> $> hbase zkcli
>>
>> $>ls /
>>
>>
>>
>> You should be able to see [zookeeper, hbase]
>>
>> If you don’t see this, then it means hbase service is not started or did
>> not properly register with zookeeper.
>>
>>
>>
>> Best thing to do would be remove the images of avapno/apache-phoenix and
>> try pulling the docker image again.
>>
>>
>>
>> I used this command and it worked
>>
>> docker run -it --name phoenix -p 8765:8765 avapno/apache-phoenix
>>
>>
>>
>> Regards,
>> Will
>>
>> *From: *Cheyenne Forbes <ch...@gmail.com>
>> *Reply-To: *"user@phoenix.apache.org" <us...@phoenix.apache.org>
>> *Date: *Saturday, April 29, 2017 at 1:35 PM
>> *To: *"user@phoenix.apache.org" <us...@phoenix.apache.org>
>> *Subject: *I cant get the latest phoenix to work in docker
>>
>>
>>
>> docker file and other files: https://github.com/CheyenneFor
>> bes/docker-apache-phoenix
>>
>> the connection just hangs when I try to use the query server and if I run
>> any command in hbase shell I get "ERROR: Can't get master address from
>> ZooKeeper; znode data == null"
>>
>>
>> Regards,
>>
>>
>>
>> Cheyenne O. Forbes
>>
>>
>>
>>
>>
>
>

Re: I cant get the latest phoenix to work in docker

Posted by Cheyenne Forbes <ch...@gmail.com>.
I see "master.HMaster: Failed to become active master
java.net.ConnectException: Call From 7a2df40d1596/172.17.0.2 to
localhost:9000 failed on connection exception: java.net.ConnectException:
Connection refused; For more details see:
http://wiki.apache.org/hadoop/ConnectionRefused"

Regards,

Cheyenne O. Forbes

Chief Executive Officer
Avapno Omnitech, Limited

Chief Operating Officer
Avapno Solutions Co. Limited

Chief Technology Officer
ZirconOne Corperation

Chairman
Avapno Assets, LLC

Bethel Town P.O
Westmoreland
Jamaica

Email: cheyenne.osanu.forbes@gmail.com
Mobile: +1 (876) 881-7889 <876-881-7889>
Landline: +1 (876) 957-1821
skype: cheyenne.forbes1


On Mon, May 1, 2017 at 6:55 PM, York, Zach <zy...@amazon.com> wrote:

> This means that the HBase Master can’t connect to ZooKeeper. Can you check
> the HBase logs to see any exceptions there?
>
>
>
> *From: *Cheyenne Forbes <ch...@gmail.com>
> *Reply-To: *"user@phoenix.apache.org" <us...@phoenix.apache.org>
> *Date: *Monday, May 1, 2017 at 4:26 PM
> *To: *"user@phoenix.apache.org" <us...@phoenix.apache.org>
> *Subject: *Re: I cant get the latest phoenix to work in docker
>
>
>
> Also when I run "list" in "hbase shell" I get "ERROR: Can't get master
> address from ZooKeeper; znode data == null"
>
>
> Regards,
>
>
>
> Cheyenne O. Forbes
>
>
>
>
>
> On Mon, May 1, 2017 at 4:30 PM, Cheyenne Forbes <
> cheyenne.osanu.forbes@gmail.com> wrote:
>
> I see [zookeeper, hbase] but when I try to use "$PHOENIX_HOME/bin/sqlline-thin.py
> localhost" I am gettng java.lang.RuntimeException:
> org.apache.phoenix.shaded.org.apache.http.conn.HttpHostConnectException:
> Connect to localhost:8765 [localhost/127.0.0.1,
> localhost/0:0:0:0:0:0:0:1] failed: Connection refused
>
>
> Regards,
>
>
>
> Cheyenne O. Forbes
>
>
>
>
>
> On Mon, May 1, 2017 at 12:25 PM, Will Xu <wx...@hortonworks.com> wrote:
>
> If you run
>
> $> hbase zkcli
>
> $>ls /
>
>
>
> You should be able to see [zookeeper, hbase]
>
> If you don’t see this, then it means hbase service is not started or did
> not properly register with zookeeper.
>
>
>
> Best thing to do would be remove the images of avapno/apache-phoenix and
> try pulling the docker image again.
>
>
>
> I used this command and it worked
>
> docker run -it --name phoenix -p 8765:8765 avapno/apache-phoenix
>
>
>
> Regards,
> Will
>
> *From: *Cheyenne Forbes <ch...@gmail.com>
> *Reply-To: *"user@phoenix.apache.org" <us...@phoenix.apache.org>
> *Date: *Saturday, April 29, 2017 at 1:35 PM
> *To: *"user@phoenix.apache.org" <us...@phoenix.apache.org>
> *Subject: *I cant get the latest phoenix to work in docker
>
>
>
> docker file and other files: https://github.com/
> CheyenneForbes/docker-apache-phoenix
>
> the connection just hangs when I try to use the query server and if I run
> any command in hbase shell I get "ERROR: Can't get master address from
> ZooKeeper; znode data == null"
>
>
> Regards,
>
>
>
> Cheyenne O. Forbes
>
>
>
>
>

Re: I cant get the latest phoenix to work in docker

Posted by "York, Zach" <zy...@amazon.com>.
This means that the HBase Master can’t connect to ZooKeeper. Can you check the HBase logs to see any exceptions there?

From: Cheyenne Forbes <ch...@gmail.com>
Reply-To: "user@phoenix.apache.org" <us...@phoenix.apache.org>
Date: Monday, May 1, 2017 at 4:26 PM
To: "user@phoenix.apache.org" <us...@phoenix.apache.org>
Subject: Re: I cant get the latest phoenix to work in docker

Also when I run "list" in "hbase shell" I get "ERROR: Can't get master address from ZooKeeper; znode data == null"

Regards,

Cheyenne O. Forbes


On Mon, May 1, 2017 at 4:30 PM, Cheyenne Forbes <ch...@gmail.com>> wrote:
I see [zookeeper, hbase] but when I try to use "$PHOENIX_HOME/bin/sqlline-thin.py localhost" I am gettng java.lang.RuntimeException: org.apache.phoenix.shaded.org<http://org.apache.phoenix.shaded.org>.apache.http.conn.HttpHostConnectException: Connect to localhost:8765 [localhost/127.0.0.1<http://127.0.0.1>, localhost/0:0:0:0:0:0:0:1] failed: Connection refused

Regards,

Cheyenne O. Forbes


On Mon, May 1, 2017 at 12:25 PM, Will Xu <wx...@hortonworks.com>> wrote:
If you run
$> hbase zkcli
$>ls /

You should be able to see [zookeeper, hbase]
If you don’t see this, then it means hbase service is not started or did not properly register with zookeeper.

Best thing to do would be remove the images of avapno/apache-phoenix and try pulling the docker image again.

I used this command and it worked
docker run -it --name phoenix -p 8765:8765 avapno/apache-phoenix

Regards,
Will
From: Cheyenne Forbes <ch...@gmail.com>>
Reply-To: "user@phoenix.apache.org<ma...@phoenix.apache.org>" <us...@phoenix.apache.org>>
Date: Saturday, April 29, 2017 at 1:35 PM
To: "user@phoenix.apache.org<ma...@phoenix.apache.org>" <us...@phoenix.apache.org>>
Subject: I cant get the latest phoenix to work in docker

docker file and other files: https://github.com/CheyenneForbes/docker-apache-phoenix
the connection just hangs when I try to use the query server and if I run any command in hbase shell I get "ERROR: Can't get master address from ZooKeeper; znode data == null"

Regards,

Cheyenne O. Forbes



Re: I cant get the latest phoenix to work in docker

Posted by Cheyenne Forbes <ch...@gmail.com>.
Also when I run "list" in "hbase shell" I get "ERROR: Can't get master
address from ZooKeeper; znode data == null"

Regards,

Cheyenne O. Forbes


On Mon, May 1, 2017 at 4:30 PM, Cheyenne Forbes <
cheyenne.osanu.forbes@gmail.com> wrote:

> I see [zookeeper, hbase] but when I try to use "$PHOENIX_HOME/bin/sqlline-thin.py
> localhost" I am gettng java.lang.RuntimeException:
> org.apache.phoenix.shaded.org.apache.http.conn.HttpHostConnectException:
> Connect to localhost:8765 [localhost/127.0.0.1,
> localhost/0:0:0:0:0:0:0:1] failed: Connection refused
>
> Regards,
>
> Cheyenne O. Forbes
>
>
> On Mon, May 1, 2017 at 12:25 PM, Will Xu <wx...@hortonworks.com> wrote:
>
>> If you run
>>
>> $> hbase zkcli
>>
>> $>ls /
>>
>>
>>
>> You should be able to see [zookeeper, hbase]
>>
>> If you don’t see this, then it means hbase service is not started or did
>> not properly register with zookeeper.
>>
>>
>>
>> Best thing to do would be remove the images of avapno/apache-phoenix and
>> try pulling the docker image again.
>>
>>
>>
>> I used this command and it worked
>>
>> docker run -it --name phoenix -p 8765:8765 avapno/apache-phoenix
>>
>>
>>
>> Regards,
>> Will
>>
>> *From: *Cheyenne Forbes <ch...@gmail.com>
>> *Reply-To: *"user@phoenix.apache.org" <us...@phoenix.apache.org>
>> *Date: *Saturday, April 29, 2017 at 1:35 PM
>> *To: *"user@phoenix.apache.org" <us...@phoenix.apache.org>
>> *Subject: *I cant get the latest phoenix to work in docker
>>
>>
>>
>> docker file and other files: https://github.com/CheyenneFor
>> bes/docker-apache-phoenix
>>
>> the connection just hangs when I try to use the query server and if I run
>> any command in hbase shell I get "ERROR: Can't get master address from
>> ZooKeeper; znode data == null"
>>
>>
>> Regards,
>>
>>
>>
>> Cheyenne O. Forbes
>>
>
>

Re: I cant get the latest phoenix to work in docker

Posted by Cheyenne Forbes <ch...@gmail.com>.
I see [zookeeper, hbase] but when I try to use
"$PHOENIX_HOME/bin/sqlline-thin.py localhost" I am gettng
java.lang.RuntimeException:
org.apache.phoenix.shaded.org.apache.http.conn.HttpHostConnectException:
Connect to localhost:8765 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1]
failed: Connection refused

Regards,

Cheyenne O. Forbes


On Mon, May 1, 2017 at 12:25 PM, Will Xu <wx...@hortonworks.com> wrote:

> If you run
>
> $> hbase zkcli
>
> $>ls /
>
>
>
> You should be able to see [zookeeper, hbase]
>
> If you don’t see this, then it means hbase service is not started or did
> not properly register with zookeeper.
>
>
>
> Best thing to do would be remove the images of avapno/apache-phoenix and
> try pulling the docker image again.
>
>
>
> I used this command and it worked
>
> docker run -it --name phoenix -p 8765:8765 avapno/apache-phoenix
>
>
>
> Regards,
> Will
>
> *From: *Cheyenne Forbes <ch...@gmail.com>
> *Reply-To: *"user@phoenix.apache.org" <us...@phoenix.apache.org>
> *Date: *Saturday, April 29, 2017 at 1:35 PM
> *To: *"user@phoenix.apache.org" <us...@phoenix.apache.org>
> *Subject: *I cant get the latest phoenix to work in docker
>
>
>
> docker file and other files: https://github.com/
> CheyenneForbes/docker-apache-phoenix
>
> the connection just hangs when I try to use the query server and if I run
> any command in hbase shell I get "ERROR: Can't get master address from
> ZooKeeper; znode data == null"
>
>
> Regards,
>
>
>
> Cheyenne O. Forbes
>