Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC56110666 for ; Tue, 17 Mar 2015 22:09:48 +0000 (UTC) Received: (qmail 68004 invoked by uid 500); 17 Mar 2015 22:09:38 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 67910 invoked by uid 500); 17 Mar 2015 22:09:38 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 67603 invoked by uid 99); 17 Mar 2015 22:09:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2015 22:09:38 +0000 Date: Tue, 17 Mar 2015 22:09:38 +0000 (UTC) From: "Antonenko Alexander (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-8620) weird directory suggestions upon Docker containers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-8620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14366189#comment-14366189 ] Antonenko Alexander commented on AMBARI-8620: --------------------------------------------- We need to be sure where we wanna apply this patch. > weird directory suggestions upon Docker containers > -------------------------------------------------- > > Key: AMBARI-8620 > URL: https://issues.apache.org/jira/browse/AMBARI-8620 > Project: Ambari > Issue Type: Bug > Components: ambari-web > Affects Versions: 2.0.0 > Reporter: jun aoki > Assignee: jun aoki > Labels: patch > Attachments: AMBARI-8620.patch, screenshot-1.png, screenshot-2.png > > > Ambari cluster install wizard recommends some directory settings (NameNode directories, ZooKeep directory etc.) based upon directories mounted on LInux system. > The recommendation has some good logic, briefly > 1. hit cluster API e.g. http://host:8080/api/v1/clusters/cluster1/hosts/agent1.mydomain.com > {code} > { > href: "http://ambari_automation_centos7:8080/api/v1/clusters/aaa/hosts/agent1.mydomain.com", > Hosts: { > cluster_name: "aaa", > cpu_count: 8, > disk_info: [ > { > available: "5911904", > used: "3737524", > percent: "39%", > size: "10190100", > type: "rootfs", > mountpoint: "/" > }, > { > available: "5911904", > used: "3737524", > percent: "39%", > size: "10190100", > type: "ext4", > mountpoint: "/" > }, > { > available: "4005892", > used: "0", > percent: "0%", > size: "4005892", > type: "tmpfs", > mountpoint: "/dev" > }, > { > available: "65536", > used: "0", > percent: "0%", > size: "65536", > type: "tmpfs", > mountpoint: "/dev/shm" > }, > { > available: "22421136", > used: "15874140", > percent: "42%", > size: "38295276", > type: "xfs", > mountpoint: "/etc/resolv.conf" > }, > { > available: "22421136", > used: "15874140", > percent: "42%", > size: "38295276", > type: "xfs", > mountpoint: "/etc/hostname" > }, > { > available: "22421136", > used: "15874140", > percent: "42%", > size: "38295276", > type: "xfs", > mountpoint: "/etc/hosts" > } > ], > host_health_report: "", > host_name: "agent1.mydomain.com", > host_state: "HEALTHY", > host_status: "UNHEALTHY", > ip: "172.17.0.8", > last_agent_env: { > stackFoldersAndFiles: [ ], > alternatives: [ ], > existingUsers: [ ], > existingRepos: [ > "unable_to_determine" > ], > installedPackages: [ ], > hostHealth: { > activeJavaProcs: [ ], > agentTimeStampAtReporting: 1418160197099, > serverTimeStampAtReporting: 1418160197173, > liveServices: [ > { > desc: "ntpd is stopped ", > name: "ntpd", > status: "Unhealthy" > } > ] > }, > umask: 18, > transparentHugePage: "", > iptablesIsRunning: true, > reverseLookup: true > }, > last_heartbeat_time: 1418160197173, > last_registration_time: 1418097149332, > maintenance_state: "OFF", > os_arch: "x86_64", > os_type: "centos6", > ph_cpu_count: 8, > public_host_name: "agent1.mydomain.com", > rack_info: "/default-rack", > total_mem: 8011788, > desired_configs: { > capacity-scheduler: { > default: "version1" > }, > cluster-env: { > default: "version1" > }, > core-site: { > default: "version1" > }, > ganglia-env: { > default: "version1" > }, > hadoop-env: { > default: "version1" > }, > hadoop-policy: { > default: "version1" > }, > hdfs-log4j: { > default: "version1" > }, > hdfs-site: { > default: "version1" > }, > mapred-env: { > default: "version1" > }, > mapred-site: { > default: "version1" > }, > nagios-env: { > default: "version1" > }, > pig-env: { > default: "version1" > }, > pig-log4j: { > default: "version1" > }, > pig-properties: { > default: "version1" > }, > tez-env: { > default: "version1" > }, > tez-site: { > default: "version1" > }, > yarn-env: { > default: "version1" > }, > yarn-log4j: { > default: "version1" > }, > yarn-site: { > default: "version1" > }, > zoo.cfg: { > default: "version1" > }, > zookeeper-env: { > default: "version1" > }, > zookeeper-log4j: { > default: "version1" > } > } > }, > host_components: [ > { > href: "http://ambari_automation_centos7:8080/api/v1/clusters/aaa/hosts/agent1.mydomain.com/host_components/DATANODE", > HostRoles: { > cluster_name: "aaa", > component_name: "DATANODE", > host_name: "agent1.mydomain.com" > } > }, > { > href: "http://ambari_automation_centos7:8080/api/v1/clusters/aaa/hosts/agent1.mydomain.com/host_components/GANGLIA_MONITOR", > HostRoles: { > cluster_name: "aaa", > component_name: "GANGLIA_MONITOR", > host_name: "agent1.mydomain.com" > } > }, > { > href: "http://ambari_automation_centos7:8080/api/v1/clusters/aaa/hosts/agent1.mydomain.com/host_components/GANGLIA_SERVER", > HostRoles: { > cluster_name: "aaa", > component_name: "GANGLIA_SERVER", > host_name: "agent1.mydomain.com" > } > }, > { > href: "http://ambari_automation_centos7:8080/api/v1/clusters/aaa/hosts/agent1.mydomain.com/host_components/HDFS_CLIENT", > HostRoles: { > cluster_name: "aaa", > component_name: "HDFS_CLIENT", > host_name: "agent1.mydomain.com" > } > }, > { > href: "http://ambari_automation_centos7:8080/api/v1/clusters/aaa/hosts/agent1.mydomain.com/host_components/MAPREDUCE2_CLIENT", > HostRoles: { > cluster_name: "aaa", > component_name: "MAPREDUCE2_CLIENT", > host_name: "agent1.mydomain.com" > } > }, > { > href: "http://ambari_automation_centos7:8080/api/v1/clusters/aaa/hosts/agent1.mydomain.com/host_components/NAGIOS_SERVER", > HostRoles: { > cluster_name: "aaa", > component_name: "NAGIOS_SERVER", > host_name: "agent1.mydomain.com" > } > }, > { > href: "http://ambari_automation_centos7:8080/api/v1/clusters/aaa/hosts/agent1.mydomain.com/host_components/NAMENODE", > HostRoles: { > cluster_name: "aaa", > component_name: "NAMENODE", > host_name: "agent1.mydomain.com" > } > }, > { > href: "http://ambari_automation_centos7:8080/api/v1/clusters/aaa/hosts/agent1.mydomain.com/host_components/NODEMANAGER", > HostRoles: { > cluster_name: "aaa", > component_name: "NODEMANAGER", > host_name: "agent1.mydomain.com" > } > }, > { > href: "http://ambari_automation_centos7:8080/api/v1/clusters/aaa/hosts/agent1.mydomain.com/host_components/PIG", > HostRoles: { > cluster_name: "aaa", > component_name: "PIG", > host_name: "agent1.mydomain.com" > } > }, > { > href: "http://ambari_automation_centos7:8080/api/v1/clusters/aaa/hosts/agent1.mydomain.com/host_components/SPARK_CLIENT", > HostRoles: { > cluster_name: "aaa", > component_name: "SPARK_CLIENT", > host_name: "agent1.mydomain.com" > } > }, > { > href: "http://ambari_automation_centos7:8080/api/v1/clusters/aaa/hosts/agent1.mydomain.com/host_components/TEZ_CLIENT", > HostRoles: { > cluster_name: "aaa", > component_name: "TEZ_CLIENT", > host_name: "agent1.mydomain.com" > } > }, > { > href: "http://ambari_automation_centos7:8080/api/v1/clusters/aaa/hosts/agent1.mydomain.com/host_components/YARN_CLIENT", > HostRoles: { > cluster_name: "aaa", > component_name: "YARN_CLIENT", > host_name: "agent1.mydomain.com" > } > }, > { > href: "http://ambari_automation_centos7:8080/api/v1/clusters/aaa/hosts/agent1.mydomain.com/host_components/ZOOKEEPER_CLIENT", > HostRoles: { > cluster_name: "aaa", > component_name: "ZOOKEEPER_CLIENT", > host_name: "agent1.mydomain.com" > } > }, > { > href: "http://ambari_automation_centos7:8080/api/v1/clusters/aaa/hosts/agent1.mydomain.com/host_components/ZOOKEEPER_SERVER", > HostRoles: { > cluster_name: "aaa", > component_name: "ZOOKEEPER_SERVER", > host_name: "agent1.mydomain.com" > } > } > ] > } > {code} > 2. Filter out "/", "/home", "/boot" > 3. Filter out devtmpfs, tmpfs vboxsf > The problem is, upon docker environment, some directories is concatenated with xfs mounts Docker uses > e.g. /etc/resolv.conf, /etc/hostname > Thus, recommended directory paths are weird > e.g. > /etc/resolv.conf/hadoop/hdfs/namenode > /etc/hostname/hadoop/hdfs/namenode > /etc/hosts/hadoop/hdfs/namenode -- This message was sent by Atlassian JIRA (v6.3.4#6332)