GithubHelp home page GithubHelp logo

Comments (8)

mcapitanio avatar mcapitanio commented on September 26, 2024 1

Hi @Filippo89 , you can run:

docker exec -it hive bash

if you you the latest branch

from docker-hive.

mcapitanio avatar mcapitanio commented on September 26, 2024

@mikestnx
Hi!
If you look at the docker.compose.yml in Hive you'll notice that the hive service is linked to zookeeper, hadoop and postgred (for the Hive metadata) and all them are on the same network. This is enough to say docker that the "hive" service can contact the "hadoop" service using the hostname "hadoop". The hostname is equals to the service name in that case.

I don't know how would be in Kitematic, but if you just start hive with docker-compose you should get all services up and running and you would be able to use presto upon them.

from docker-hive.

mikestnx avatar mikestnx commented on September 26, 2024

from docker-hive.

mcapitanio avatar mcapitanio commented on September 26, 2024

Hi Mike,

to have Hive up and running you have to get also the services "hadoop", "zookeeper" and "postgres" (for the metastore) up and running.
The following docker-compose.yml should do the thing, because it sets th.e links dependecies and Docker do it all what is needed to define the hostaneme and set them in the dns for the "hadoop" network. I have written it without testing, but it should work.. .;)

version: '2'
services:
  postgres:
    image: mcapitanio/postgres:9.6
    networks:
    - hadoop
    ports:
    - 5432:5432
    environment: POSTGRES_PASSWORD:postgres
  zookeeper:
    image: mcapitanio/zookeeper:latest
    ports:
    - 2181:2181
    - 2888:2888
    - 3888:3888
    - 8086:8080
    networks:
    - hadoop
  hadoop:
    image: mcapitanio/hadoop:latest
    networks:
    - hadoop
    links:
    - zookeeper
    ports:
    - 50070:50070
    - 50075:50075
    - 8020:8020
    - 8042:8042
    - 8088:8088
    - 8188:8188
    - 19888:19888
  hive:
    image: mcapitanio/hive:latest
    networks:
    - hadoop
    links:
    - hadoop
    - zookeeper
    - postgres
    environment:
      PGPASSWORD: postgres
    ports:
    - 10000:10000
    - 10001:10001
    - 10002:10002
    - 10003:10003
    - 9083:9083
    - 50111:50111
    - 9999:9999
networks:
  hadoop:
    driver: bridge

from docker-hive.

mikestnx avatar mikestnx commented on September 26, 2024

from docker-hive.

mcapitanio avatar mcapitanio commented on September 26, 2024

@mikestnx Sorry not having answered you. Did you solve the problem?

from docker-hive.

Filippo89 avatar Filippo89 commented on September 26, 2024

@mcapitanio Hi, there is a way after you compose-up the service to access it via bash? For example I would like to use the Hive beeline to create tables.

from docker-hive.

Filippo89 avatar Filippo89 commented on September 26, 2024

Yes, thank you a lot! I had a problem with Hadoop then but using the new docker-compose.yml you post in this discussion solved the issue also for me.

from docker-hive.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.