install hook fails on LXC containers without FQDN
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-datacluste
+ MAPRED_
mapred_
io_sort_factor
io_sort_mb
mapred_
tasktracker_
+ CONFIG_
/etc/hadoop/
/etc/hadoop/
/etc/hadoop/
/etc/hadoop/
++ resolve_hdfs_role
++ role=unconfigured
++ '[' -d /usr/share/
++ :
++ '[' -d /usr/share/
++ :
++ '[' -d /usr/share/
++ :
++ echo unconfigured
+ hdfs_role=
++ resolve_mapred_role
++ role=unconfigured
++ '[' -d /usr/share/
++ :
++ '[' -d /usr/share/
++ :
++ echo unconfigured
+ mapred_
++ basename hooks/install
+ COMMAND=install
+ case $COMMAND in
+ configure_hosts
++ unit-get private-address
+ private_
++ hostname
+ hostname=
+ grep -q '^127.0.
++ hostname -f
hostname: Name or service not known
+ hostname=