install hook fails on LXC containers without FQDN

Bug #1272161 reported by Charles Butler
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
hadoop (Juju Charms Collection)
New
Undecided
Unassigned

Bug Description

When executing the README examples, both Combined HDFS and MapReduce, Separate HDFS and MapReduce deployment schemas fail the installation hook on all nodes with the following output:

This may be specific to my LXC installation, as my LXC Containers are not generated with FQD hostnames.

(note: hooks/install were modified to set -ex from set -e for the output)

hdfs-datacluster/0:install % hooks/install
+ MAPRED_CONFIG='mapred_reduce_parallel_copies
mapred_child_java_opts
io_sort_factor
io_sort_mb
mapred_job_tracker_handler_count
tasktracker_http_threads'
+ CONFIG_FILES='/etc/hadoop/conf.juju/hdfs-site.xml
/etc/hadoop/conf.juju/core-site.xml
/etc/hadoop/conf.juju/mapred-site.xml
/etc/hadoop/conf.juju/hadoop-env.sh
/etc/hadoop/conf.juju/hadoop-metrics2.properties'
++ resolve_hdfs_role
++ role=unconfigured
++ '[' -d /usr/share/doc/hadoop-namenode ']'
++ :
++ '[' -d /usr/share/doc/hadoop-secondarynamenode ']'
++ :
++ '[' -d /usr/share/doc/hadoop-datanode ']'
++ :
++ echo unconfigured
+ hdfs_role=unconfigured
++ resolve_mapred_role
++ role=unconfigured
++ '[' -d /usr/share/doc/hadoop-jobtracker ']'
++ :
++ '[' -d /usr/share/doc/hadoop-tasktracker ']'
++ :
++ echo unconfigured
+ mapred_role=unconfigured
++ basename hooks/install
+ COMMAND=install
+ case $COMMAND in
+ configure_hosts
++ unit-get private-address
+ private_address=10.0.5.123
++ hostname
+ hostname=charles-local-machine-2
+ grep -q '^127.0.0.1.*charles-local-machine-2' /etc/hosts
++ hostname -f
hostname: Name or service not known
+ hostname=

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.