Details
Description
Sure, on a system with no hue user.
untar a hadoop tarball
build hue from source
attempt to install the beeswax sample tables.
If you /tmp should get created by a user other than hue and the hue (user unknown) will fail to install the samples/
I think the offending code is in management/commands/beeswax_install_examples.py
...
HADOOP_USER = 'hue'
...
def _make_query_msg(hql):
"""
Make a thrift Query object.
Need to run query as a valid hadoop user. Use hue:supergroup
"""
query_msg = BeeswaxService.Query(query=hql, configuration=[])
query_msg.hadoop_user = HADOOP_USER
return query_msg
...
def create(self, django_user):
"""
Create in Hive. Returns True/False.
"""
Create table
LOG.info('Creating table "%s"' % (self.name,))
try:
Already exists?
tables = db_utils.meta_client().get_table("default", self.name)
LOG.error('Table "%s" already exists' % (self.name,))
return False
except hive_metastore.ttypes.NoSuchObjectException:
query_msg = _make_query_msg(self.hql)
try:
results = db_utils.execute_and_wait(django_user, query_msg)
if not results:
LOG.error('Error creating table %s: Operation timeout' % (self.name,))
return False
except BeeswaxException, ex:
LOG.error('Error creating table %s: %s' % (self.name, ex))
return False
return True
...