# hdfs-hive **Repository Path**: darebeat/hdfs-hive ## Basic Information - **Project Name**: hdfs-hive - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-19 - **Last Updated**: 2021-04-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Docker HDFS-HIVE A development big data infrastructure with docker-compose. ## Local machine requirements 8 GB Ram ## Prepare environment 1. Start Docker 2. Git clone from this repository with following command: git clone 3. Open terminal and print `docker compose up` 4. Check that containers upped `docker ps --format '{{.Names}}'` .
Expected result:
hive-server
hive-metastore
hive-metastore-postgresql
datanode
hue
database
namenode ## Example * Connect to hive-server Docker bash - `docker exec -it hive-server /bin/bash` * Launch Hive - `hive` * Create Table - `CREATE TABLE students (name VARCHAR(64), age INT, gpa DECIMAL(3, 2));`
Expected output:
OK
Time taken: 1.359 seconds * Insert test data to created table - `INSERT INTO TABLE students VALUES ('fred flintstone', 35, 1.28), ('barney rubble', 32, 2.32);` * Check data - `SELECT * FROM default.students;` ## URLS HUE UI - http://localhost:8888
HDFS NameNode UI - http://localhost:50070
In this repository, we used an initial [Git Project](https://github.com/m-semnani/bd-infra)
You can find more explanation in [this article](https://itnext.io/creating-a-big-data-development-platform-using-docker-compose-892f7f4da738).