Skip to content

Commit

Permalink
added deafault env vars for hadoop in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Giannis Mouchakis committed Jun 15, 2016
1 parent 5521e95 commit 52bbcda
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,29 @@ MAINTAINER Yiannis Mouchakis <gmouchakis@iit.demokritos.gr>

ENV HIVE_VERSION 2.0.0

ENV CORE_CONF_fs_defaultFS hdfs://namenode:8020
ENV CORE_CONF_hadoop_http_staticuser_user root
ENV CORE_CONF_hadoop_proxyuser_hue_hosts *
ENV CORE_CONF_hadoop_proxyuser_hue_groups *

ENV HDFS_CONF_dfs_webhdfs_enabled true
ENV HDFS_CONF_dfs_permissions_enabled false

ENV YARN_CONF_yarn_log___aggregation___enable true
ENV YARN_CONF_yarn_resourcemanager_recovery_enabled true
ENV YARN_CONF_yarn_resourcemanager_store_class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore
ENV YARN_CONF_yarn_resourcemanager_fs_state___store_uri /rmstate
ENV YARN_CONF_yarn_nodemanager_remote___app___log___dir /app-logs
ENV YARN_CONF_yarn_log_server_url http://historyserver:8188/applicationhistory/logs/
ENV YARN_CONF_yarn_timeline___service_enabled true
ENV YARN_CONF_yarn_timeline___service_generic___application___history_enabled true
ENV YARN_CONF_yarn_resourcemanager_system___metrics___publisher_enabled true
ENV YARN_CONF_yarn_resourcemanager_hostname resourcemanager
ENV YARN_CONF_yarn_timeline___service_hostname historyserver
ENV YARN_CONF_yarn_resourcemanager_address resourcemanager:8032
ENV YARN_CONF_yarn_resourcemanager_scheduler_address resourcemanager:8030
ENV YARN_CONF_yarn_resourcemanager_resource__tracker_address resourcemanager:8031

WORKDIR /opt

RUN apt-get update && apt-get install -y wget && \
Expand Down

0 comments on commit 52bbcda

Please sign in to comment.