version: '3.6'
services:
livy:
environment:
HADOOP_CONF_DIR: file:/opt/my-hadoop-cluster-config
volumes:
- YOUR_LOCAL_HADOOP_CONFIGURATION_FOLDER:/opt/my-hadoop-cluster-config
component-server:
environment:
HADOOP_CONF_DIR: file:/opt/my-hadoop-cluster-config
volumes:
- YOUR_LOCAL_HADOOP_CONFIGURATION_FOLDER:/opt/my-hadoop-cluster-config
YOUR_LOCAL_HADOOP_CONFIGURATION_FOLDERには、Hadoop設定ファイルが保存されているローカルフォルダーへのパスが入ります。