Sign inSign up

modenaf360/hadoop-tasknode

By modenaf360

•Updated about 7 years ago

hadoop 3.2 tasknode, Image for scale out using node manager

Image
0

336

modenaf360/hadoop-tasknode repository overview

⁠Hadoop3.2

This docker uses Hadoop version 3.2.0.

⁠3. Dynamic TaskNode ScaleOut

You can add a TaskNode using hadoop.env, which is the same as the endpoint setting of a resource manager in an existing Hadoop cluster. Tasknode has only nodemanager enabled and is automatically joined to the yarn as the resourcemanager endpoint in the same Hadoop environment file. After check active node of the TaskNode UI and Use it.

!! If the orchestration does not have a different hostname and you scale out the same container, additional testing is required. screenshot1

docker-compose -f ./example/tasknode/docker-compose.yml up -d
⁠All node has Gotty Web Terminal

The gotty browser terminal can be used for account configuration and can be used without validation check if the GOTTY_ID and GOTTY_PW environment variables are not set.

  • gotty is using port internal : 7777 screenshot1
⁠Configure Environment Variables
  • The dynamically configurable Hadoop environment file is shown below.
  • core-site.xml
  • hdfs-site.xml
  • yarn-site.xml
  • httpfs-site.xml
  • kms-site.xml
  • mapred-site.xml
⁠Special characters in environment variables are converted as follows.
  • ___ : -
  • __ : @
  • _ : .
  • @ : _

example,

YARN_CONF_yarn_scheduler_maximum___allocation___vcores=3
--> 

YARN_CONF_ : yarn-site.xml 

<property><name>yarn.scheduler.maximum-allocation-vcores</name><value>3</value></property>

In hadoop.env, the information to change depends on the user setting. The memory settings of map reduce are set as follows,

mapreduce.map.memory.mb + mapreduce.reduce.memory.mb + yarn.app.mapreduce.am.resource.mb < yarn.scheduler.maximum-allocation-mb < yarn.nodemanager.resource.memory-mb

screenshot1

  • modify it.
CORE_CONF_fs_defaultFS=hdfs://master:9000
YARN_CONF_yarn_nodemanager_resource_cpu___vcores=2
YARN_CONF_yarn_scheduler_maximum___allocation___vcores=3
YARN_CONF_yarn_nodemanager_resource_memory___mb=6000
YARN_CONF_yarn_scheduler_maximum___allocation___mb=5000
MAPRED_CONF_mapreduce_map_memory_mb=2048
MAPRED_CONF_mapreduce_reduce_memory_mb=1024
MAPRED_CONF_yarn_app_mapreduce_am_resource_mb=1024
MAPRED_CONF_mapreduce_map_java_opts=-Xmx1024m
MAPRED_CONF_mapreduce_reduce_java_opts=-Xmx1638m
HDFS_CONF_fs_s3a_access_key=accecckey
HDFS_CONF_fs_s3a.endpoint=endpoint
HDFS_CONF_fs_s3a_secret_key=secretkey

Tag summary

Content type

Image

Digest

Size

921.6 MB

Last updated

about 7 years ago

docker pull modenaf360/hadoop-tasknode