nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Diego Gullo (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NUTCH-2260) JAVA_HOME and hbase-common dependency absent from hbase Docker image
Date Mon, 16 May 2016 01:59:12 GMT

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

Diego Gullo commented on NUTCH-2260:
------------------------------------

Thanks for opening the ticket. If you spin the commands as hduser (hadoop user) the JAVA_HOME
is set up.

docker exec -it nutch bash -c 'su hduser'
hduser@7f3e7e0c298e:/root$ env | grep JAVA
JAVA_HOME=/usr/lib/jvm/java-7-oracle/

The above was done on purpose if you see line https://github.com/apache/nutch/blob/2.x/docker/hbase/Dockerfile#L84

When I tried to run the inject i was trying with this user. 

A brief background element so that I can add the hbase-common dependencies, in case they are
missing. 

In my docker compose I add some env variables when the container is booted up. https://github.com/bizmate/nutch/blob/master/docker-compose.yml#L44-L45

I guess the above is not enough and we need more JARs?

hduser@7f3e7e0c298e:/root$ ls /opt/hbase/lib/ | grep  hbase-common
hbase-common-0.98.8-hadoop2-tests.jar
hbase-common-0.98.8-hadoop2.jar

The above are the only hbase-common jars under the hbase lib location I set in the env vars.

Since I am not a Java expert(i focus on PHP/Agile etc) If you give me any pointers in what
to look for I could help with some PRs with the docker file.
About zookeper connection error shown on the PR I have no clue


> JAVA_HOME and hbase-common dependency absent from hbase Docker image
> --------------------------------------------------------------------
>
>                 Key: NUTCH-2260
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2260
>             Project: Nutch
>          Issue Type: Bug
>          Components: build, docker
>    Affects Versions: 2.3.1
>            Reporter: Lewis John McGibbney
>            Assignee: Lewis John McGibbney
>             Fix For: 2.4
>
>
> Both JAVA_HOME (/usr) and the hbase-common transitive dependency are missing within the
[2.x HBase Dockerfile|https://github.com/apache/nutch/blob/2.x/docker/hbase/Dockerfile]. In
order for the HBase stack to work out of the box we need to add both of these. Patch coming
up. 



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

Mime
View raw message