FAQ
I tried uploading a file through the hue file browser. But nothing seems
to be happening.
I'm running version: 2.1.0+210


When i look @ the error logs i see something like this:

[25/Oct/2012 14:47:31 +0000] models ERROR Permission object not
available. Was syncdb run after installation?
Traceback (most recent call last):
File "/usr/share/hue/apps/useradmin/src/useradmin/models.py", line 101,
in has_hue_permission
perm = self._lookup_permission(app, action)
File "/usr/share/hue/apps/useradmin/src/useradmin/models.py", line 96, in
_lookup_permission
return HuePermission.objects.get(app=app, action=action)
File
"/usr/share/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/db/models/manager.py",
line 132, in get
return self.get_query_set().get(*args, **kwargs)
File
"/usr/share/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/db/models/query.py",
line 341, in get
% self.model._meta.object_name)
DoesNotExist: HuePermission matching query does not exist.
[25/Oct/2012 14:50:38 +0000] upload ERROR Left-over upload file is
not cleaned up: /tmp/hue-uploads/tmp.10.10.0.147.1053231000472149035


when i look @ the namenode log i see this:

ERROR org.apache.hadoop.security.UserGroupInformation:
PriviledgedActionException as:hdfs (auth:PROXY) via hue (auth:SIMPLE)
cause:java.io.FileNotFoundException: File does not exist:
/tmp/hue-uploads/tmp.10.10.0.147.1053231000472149035


not sure what the issue is. I'm running as hdfs user in hue when i log in.
I ran the synchdb and tried to reupload and same error.

Search Discussions

  • Romain Rigaux at Oct 25, 2012 at 6:59 pm
    It seems to be a problem of missing permissions in the Hue DB that prevents
    the uploading from starting.

    Could you send the output of syncdb?

    Ths list of permissions should look like this in the DB:
    build/env/bin/hue dbshell

    sqlite> select * from useradmin_huepermission;
    access|about|1|Launch this application
    access|beeswax|2|Launch this application
    access|filebrowser|3|Launch this application
    access|help|4|Launch this application
    access|jobbrowser|5|Launch this application
    access|jobsub|6|Launch this application
    access|oozie|7|Launch this application
    access|proxy|8|Launch this application
    access|search|9|Launch this application
    launch_hbase|shell|10|Launch the HBase Shell
    launch_pig|shell|11|Launch the Pig Shell
    access|shell|12|Launch this application
    launch_flume|shell|13|Launch the Flume Shell
    access|useradmin|14|Launch this application

    sqlite> .tables
    auth_group oozie_dataoutput
    auth_group_permissions oozie_dataset
    auth_message oozie_end
    auth_permission oozie_fork
    auth_user oozie_history
    auth_user_groups oozie_hive
    auth_user_user_permissions oozie_java
    beeswax_metainstall oozie_job
    beeswax_queryhistory oozie_join
    beeswax_savedquery oozie_kill
    desktop_userpreferences oozie_link
    django_admin_log oozie_mapreduce
    django_content_type oozie_node
    django_session oozie_pig
    django_site oozie_shell
    jobsub_checkforsetup oozie_sqoop
    jobsub_jobdesign oozie_ssh
    jobsub_jobhistory oozie_start
    jobsub_oozieaction oozie_streaming
    jobsub_ooziedesign oozie_workflow
    jobsub_ooziejavaaction south_migrationhistory
    jobsub_ooziemapreduceaction useradmin_grouppermission
    jobsub_ooziestreamingaction useradmin_huepermission
    oozie_coordinator useradmin_ldapgroup
    oozie_datainput useradmin_userprofile

    Romain



    On Thu, Oct 25, 2012 at 8:10 AM, Anson Abraham wrote:

    I tried uploading a file through the hue file browser. But nothing seems
    to be happening.
    I'm running version: 2.1.0+210


    When i look @ the error logs i see something like this:

    [25/Oct/2012 14:47:31 +0000] models ERROR Permission object not
    available. Was syncdb run after installation?
    Traceback (most recent call last):
    File "/usr/share/hue/apps/useradmin/src/useradmin/models.py", line 101,
    in has_hue_permission
    perm = self._lookup_permission(app, action)
    File "/usr/share/hue/apps/useradmin/src/useradmin/models.py", line 96,
    in _lookup_permission
    return HuePermission.objects.get(app=app, action=action)
    File
    "/usr/share/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/db/models/manager.py",
    line 132, in get
    return self.get_query_set().get(*args, **kwargs)
    File
    "/usr/share/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/db/models/query.py",
    line 341, in get
    % self.model._meta.object_name)
    DoesNotExist: HuePermission matching query does not exist.
    [25/Oct/2012 14:50:38 +0000] upload ERROR Left-over upload file
    is not cleaned up: /tmp/hue-uploads/tmp.10.10.0.147.1053231000472149035


    when i look @ the namenode log i see this:

    ERROR org.apache.hadoop.security.UserGroupInformation:
    PriviledgedActionException as:hdfs (auth:PROXY) via hue (auth:SIMPLE)
    cause:java.io.FileNotFoundException: File does not exist:
    /tmp/hue-uploads/tmp.10.10.0.147.1053231000472149035


    not sure what the issue is. I'm running as hdfs user in hue when i log
    in. I ran the synchdb and tried to reupload and same error.
  • Anson Abraham at Oct 25, 2012 at 7:04 pm
    I'm using mysql for it, but this is what i have:
    mysql> select * from useradmin_huepermission;
    +--------------+-------------+----+-------------------------+
    action | app | id | description |
    +--------------+-------------+----+-------------------------+
    access | about | 1 | launch this application |
    access | beeswax | 2 | launch this application |
    access | filebrowser | 3 | launch this application |
    access | help | 4 | launch this application |
    access | jobbrowser | 5 | launch this application |
    access | jobsub | 6 | launch this application |
    access | proxy | 7 | launch this application |
    launch_hbase | shell | 8 | Launch the HBase Shell |
    launch_pig | shell | 9 | Launch the Pig Shell |
    access | shell | 10 | launch this application |
    launch_flume | shell | 11 | Launch the Flume Shell |
    access | useradmin | 12 | launch this application |
    +--------------+-------------+----+-------------------------+
    12 rows

    mysql> show tables;
    +-----------------------------+
    Tables_in_hue |
    +-----------------------------+
    auth_group |
    auth_group_permissions |
    auth_message |
    auth_permission |
    auth_user |
    auth_user_groups |
    auth_user_user_permissions |
    beeswax_metainstall |
    beeswax_queryhistory |
    beeswax_savedquery |
    desktop_userpreferences |
    django_admin_log |
    django_content_type |
    django_session |
    django_site |
    jobsub_checkforsetup |
    jobsub_jobdesign |
    jobsub_jobhistory |
    jobsub_oozieaction |
    jobsub_ooziedesign |
    jobsub_ooziejavaaction |
    jobsub_ooziemapreduceaction |
    jobsub_ooziestreamingaction |
    south_migrationhistory |
    useradmin_grouppermission |
    useradmin_huepermission |
    useradmin_ldapgroup |
    useradmin_userprofile |
    +-----------------------------+
    28 rows

    On Thursday, October 25, 2012 11:10:10 AM UTC-4, Anson Abraham wrote:

    I tried uploading a file through the hue file browser. But nothing seems
    to be happening.
    I'm running version: 2.1.0+210


    When i look @ the error logs i see something like this:

    [25/Oct/2012 14:47:31 +0000] models ERROR Permission object not
    available. Was syncdb run after installation?
    Traceback (most recent call last):
    File "/usr/share/hue/apps/useradmin/src/useradmin/models.py", line 101,
    in has_hue_permission
    perm = self._lookup_permission(app, action)
    File "/usr/share/hue/apps/useradmin/src/useradmin/models.py", line 96,
    in _lookup_permission
    return HuePermission.objects.get(app=app, action=action)
    File
    "/usr/share/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/db/models/manager.py",
    line 132, in get
    return self.get_query_set().get(*args, **kwargs)
    File
    "/usr/share/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/db/models/query.py",
    line 341, in get
    % self.model._meta.object_name)
    DoesNotExist: HuePermission matching query does not exist.
    [25/Oct/2012 14:50:38 +0000] upload ERROR Left-over upload file
    is not cleaned up: /tmp/hue-uploads/tmp.10.10.0.147.1053231000472149035


    when i look @ the namenode log i see this:

    ERROR org.apache.hadoop.security.UserGroupInformation:
    PriviledgedActionException as:hdfs (auth:PROXY) via hue (auth:SIMPLE)
    cause:java.io.FileNotFoundException: File does not exist:
    /tmp/hue-uploads/tmp.10.10.0.147.1053231000472149035


    not sure what the issue is. I'm running as hdfs user in hue when i log
    in. I ran the synchdb and tried to reupload and same error.
  • Romain Rigaux at Oct 25, 2012 at 8:06 pm
    Did you upgrade from 2.0?

    The Oozie App (new app in 2.1) tables (oozie_*) are not showing up and so
    the install is not complete. Can you send the output of syncdb? Are you
    using InnoDb in MySql? (show create table auth_group; -->ENGINE=InnoDB )

    Romain
    On Thu, Oct 25, 2012 at 12:04 PM, Anson Abraham wrote:

    I'm using mysql for it, but this is what i have:
    mysql> select * from useradmin_huepermission;
    +--------------+-------------+----+-------------------------+
    action | app | id | description |
    +--------------+-------------+----+-------------------------+
    access | about | 1 | launch this application |
    access | beeswax | 2 | launch this application |
    access | filebrowser | 3 | launch this application |
    access | help | 4 | launch this application |
    access | jobbrowser | 5 | launch this application |
    access | jobsub | 6 | launch this application |
    access | proxy | 7 | launch this application |
    launch_hbase | shell | 8 | Launch the HBase Shell |
    launch_pig | shell | 9 | Launch the Pig Shell |
    access | shell | 10 | launch this application |
    launch_flume | shell | 11 | Launch the Flume Shell |
    access | useradmin | 12 | launch this application |
    +--------------+-------------+----+-------------------------+
    12 rows

    mysql> show tables;
    +-----------------------------+
    Tables_in_hue |
    +-----------------------------+
    auth_group |
    auth_group_permissions |
    auth_message |
    auth_permission |
    auth_user |
    auth_user_groups |
    auth_user_user_permissions |
    beeswax_metainstall |
    beeswax_queryhistory |
    beeswax_savedquery |
    desktop_userpreferences |
    django_admin_log |
    django_content_type |
    django_session |
    django_site |
    jobsub_checkforsetup |
    jobsub_jobdesign |
    jobsub_jobhistory |
    jobsub_oozieaction |
    jobsub_ooziedesign |
    jobsub_ooziejavaaction |
    jobsub_ooziemapreduceaction |
    jobsub_ooziestreamingaction |
    south_migrationhistory |
    useradmin_grouppermission |
    useradmin_huepermission |
    useradmin_ldapgroup |
    useradmin_userprofile |
    +-----------------------------+
    28 rows

    On Thursday, October 25, 2012 11:10:10 AM UTC-4, Anson Abraham wrote:

    I tried uploading a file through the hue file browser. But nothing seems
    to be happening.
    I'm running version: 2.1.0+210


    When i look @ the error logs i see something like this:

    [25/Oct/2012 14:47:31 +0000] models ERROR Permission object not
    available. Was syncdb run after installation?
    Traceback (most recent call last):
    File "/usr/share/hue/apps/**useradmin/src/useradmin/**models.py", line
    101, in has_hue_permission
    perm = self._lookup_permission(app, action)
    File "/usr/share/hue/apps/**useradmin/src/useradmin/**models.py", line
    96, in _lookup_permission
    return HuePermission.objects.get(app=**app, action=action)
    File "/usr/share/hue/build/env/lib/**python2.6/site-packages/**
    Django-1.2.3-py2.6.egg/django/**db/models/manager.py", line 132, in get
    return self.get_query_set().get(***args, **kwargs)
    File "/usr/share/hue/build/env/lib/**python2.6/site-packages/**
    Django-1.2.3-py2.6.egg/django/**db/models/query.py", line 341, in get
    % self.model._meta.object_name)
    DoesNotExist: HuePermission matching query does not exist.
    [25/Oct/2012 14:50:38 +0000] upload ERROR Left-over upload file
    is not cleaned up: /tmp/hue-uploads/tmp.10.10.0.**147.1053231000472149035


    when i look @ the namenode log i see this:

    ERROR org.apache.hadoop.security.**UserGroupInformation:
    PriviledgedActionException as:hdfs (auth:PROXY) via hue (auth:SIMPLE) cause:
    java.io.**FileNotFoundException: File does not exist:
    /tmp/hue-uploads/tmp.10.10.0.**147.1053231000472149035


    not sure what the issue is. I'm running as hdfs user in hue when i log
    in. I ran the synchdb and tried to reupload and same error.
  • Anson Abraham at Oct 25, 2012 at 8:12 pm
    We recently did a yum update, b/c we added a node that had the lastest
    releases for Mapreduce, hdfs, etc...
    But it was CDH4 distribution initially. I don't recall what the prior
    version was before this past Sunday.


    this was output of synchdb:
    [25/Oct/2012 10:49:13 +0000] settings INFO Welcome to Hue 2.1.0
    [25/Oct/2012 10:49:14 +0000] settings WARNING secret_key should be
    configured
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    ~


    As for mysql storage it's using MyISAM.
    On Thursday, October 25, 2012 4:06:33 PM UTC-4, Romain Rigaux wrote:

    Did you upgrade from 2.0?

    The Oozie App (new app in 2.1) tables (oozie_*) are not showing up and so
    the install is not complete. Can you send the output of syncdb? Are you
    using InnoDb in MySql? (show create table auth_group; -->ENGINE=InnoDB )

    Romain

    On Thu, Oct 25, 2012 at 12:04 PM, Anson Abraham <anson....@gmail.com<javascript:>
    wrote:
    I'm using mysql for it, but this is what i have:
    mysql> select * from useradmin_huepermission;
    +--------------+-------------+----+-------------------------+
    action | app | id | description |
    +--------------+-------------+----+-------------------------+
    access | about | 1 | launch this application |
    access | beeswax | 2 | launch this application |
    access | filebrowser | 3 | launch this application |
    access | help | 4 | launch this application |
    access | jobbrowser | 5 | launch this application |
    access | jobsub | 6 | launch this application |
    access | proxy | 7 | launch this application |
    launch_hbase | shell | 8 | Launch the HBase Shell |
    launch_pig | shell | 9 | Launch the Pig Shell |
    access | shell | 10 | launch this application |
    launch_flume | shell | 11 | Launch the Flume Shell |
    access | useradmin | 12 | launch this application |
    +--------------+-------------+----+-------------------------+
    12 rows

    mysql> show tables;
    +-----------------------------+
    Tables_in_hue |
    +-----------------------------+
    auth_group |
    auth_group_permissions |
    auth_message |
    auth_permission |
    auth_user |
    auth_user_groups |
    auth_user_user_permissions |
    beeswax_metainstall |
    beeswax_queryhistory |
    beeswax_savedquery |
    desktop_userpreferences |
    django_admin_log |
    django_content_type |
    django_session |
    django_site |
    jobsub_checkforsetup |
    jobsub_jobdesign |
    jobsub_jobhistory |
    jobsub_oozieaction |
    jobsub_ooziedesign |
    jobsub_ooziejavaaction |
    jobsub_ooziemapreduceaction |
    jobsub_ooziestreamingaction |
    south_migrationhistory |
    useradmin_grouppermission |
    useradmin_huepermission |
    useradmin_ldapgroup |
    useradmin_userprofile |
    +-----------------------------+
    28 rows

    On Thursday, October 25, 2012 11:10:10 AM UTC-4, Anson Abraham wrote:

    I tried uploading a file through the hue file browser. But nothing
    seems to be happening.
    I'm running version: 2.1.0+210


    When i look @ the error logs i see something like this:

    [25/Oct/2012 14:47:31 +0000] models ERROR Permission object not
    available. Was syncdb run after installation?
    Traceback (most recent call last):
    File "/usr/share/hue/apps/**useradmin/src/useradmin/**models.py",
    line 101, in has_hue_permission
    perm = self._lookup_permission(app, action)
    File "/usr/share/hue/apps/**useradmin/src/useradmin/**models.py",
    line 96, in _lookup_permission
    return HuePermission.objects.get(app=**app, action=action)
    File "/usr/share/hue/build/env/lib/**python2.6/site-packages/**
    Django-1.2.3-py2.6.egg/django/**db/models/manager.py", line 132, in get
    return self.get_query_set().get(***args, **kwargs)
    File "/usr/share/hue/build/env/lib/**python2.6/site-packages/**
    Django-1.2.3-py2.6.egg/django/**db/models/query.py", line 341, in get
    % self.model._meta.object_name)
    DoesNotExist: HuePermission matching query does not exist.
    [25/Oct/2012 14:50:38 +0000] upload ERROR Left-over upload file
    is not cleaned up: /tmp/hue-uploads/tmp.10.10.0.**
    147.1053231000472149035


    when i look @ the namenode log i see this:

    ERROR org.apache.hadoop.security.**UserGroupInformation:
    PriviledgedActionException as:hdfs (auth:PROXY) via hue (auth:SIMPLE) cause:
    java.io.**FileNotFoundException: File does not exist:
    /tmp/hue-uploads/tmp.10.10.0.**147.1053231000472149035


    not sure what the issue is. I'm running as hdfs user in hue when i log
    in. I ran the synchdb and tried to reupload and same error.
  • Romain Rigaux at Oct 26, 2012 at 11:18 pm
    It seems that you have now 13 permissions instead of the 12 from your
    'select * from useradmin_huepermission;'. Can you also see the 'oozie_*'
    tables now by doing a 'show tables;' ?

    If you ran 'syncdb' multiple times all the outputs should be in:
    syncdb.log, syncdb.log1...

    Can you check again if it fixed the problem? You can get and send us the
    error logs from http://HUE_HOST:_HUE_PORT/logs.

    Romain

    On Thu, Oct 25, 2012 at 1:11 PM, Anson Abraham wrote:

    We recently did a yum update, b/c we added a node that had the lastest
    releases for Mapreduce, hdfs, etc...
    But it was CDH4 distribution initially. I don't recall what the prior
    version was before this past Sunday.


    this was output of synchdb:
    [25/Oct/2012 10:49:13 +0000] settings INFO Welcome to Hue 2.1.0
    [25/Oct/2012 10:49:14 +0000] settings WARNING secret_key should be
    configured
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    ~


    As for mysql storage it's using MyISAM.
    On Thursday, October 25, 2012 4:06:33 PM UTC-4, Romain Rigaux wrote:

    Did you upgrade from 2.0?

    The Oozie App (new app in 2.1) tables (oozie_*) are not showing up and so
    the install is not complete. Can you send the output of syncdb? Are you
    using InnoDb in MySql? (show create table auth_group; -->ENGINE=InnoDB )

    Romain
    On Thu, Oct 25, 2012 at 12:04 PM, Anson Abraham wrote:

    I'm using mysql for it, but this is what i have:
    mysql> select * from useradmin_huepermission;
    +--------------+-------------+**----+-------------------------**+
    action | app | id | description |
    +--------------+-------------+**----+-------------------------**+
    access | about | 1 | launch this application |
    access | beeswax | 2 | launch this application |
    access | filebrowser | 3 | launch this application |
    access | help | 4 | launch this application |
    access | jobbrowser | 5 | launch this application |
    access | jobsub | 6 | launch this application |
    access | proxy | 7 | launch this application |
    launch_hbase | shell | 8 | Launch the HBase Shell |
    launch_pig | shell | 9 | Launch the Pig Shell |
    access | shell | 10 | launch this application |
    launch_flume | shell | 11 | Launch the Flume Shell |
    access | useradmin | 12 | launch this application |
    +--------------+-------------+**----+-------------------------**+
    12 rows

    mysql> show tables;
    +-----------------------------**+
    Tables_in_hue |
    +-----------------------------**+
    auth_group |
    auth_group_permissions |
    auth_message |
    auth_permission |
    auth_user |
    auth_user_groups |
    auth_user_user_permissions |
    beeswax_metainstall |
    beeswax_queryhistory |
    beeswax_savedquery |
    desktop_userpreferences |
    django_admin_log |
    django_content_type |
    django_session |
    django_site |
    jobsub_checkforsetup |
    jobsub_jobdesign |
    jobsub_jobhistory |
    jobsub_oozieaction |
    jobsub_ooziedesign |
    jobsub_ooziejavaaction |
    jobsub_ooziemapreduceaction |
    jobsub_ooziestreamingaction |
    south_migrationhistory |
    useradmin_grouppermission |
    useradmin_huepermission |
    useradmin_ldapgroup |
    useradmin_userprofile |
    +-----------------------------**+
    28 rows

    On Thursday, October 25, 2012 11:10:10 AM UTC-4, Anson Abraham wrote:

    I tried uploading a file through the hue file browser. But nothing
    seems to be happening.
    I'm running version: 2.1.0+210


    When i look @ the error logs i see something like this:

    [25/Oct/2012 14:47:31 +0000] models ERROR Permission object
    not available. Was syncdb run after installation?
    Traceback (most recent call last):
    File "/usr/share/hue/apps/**useradmin**/src/useradmin/**models.py",
    line 101, in has_hue_permission
    perm = self._lookup_permission(app, action)
    File "/usr/share/hue/apps/**useradmin**/src/useradmin/**models.py",
    line 96, in _lookup_permission
    return HuePermission.objects.get(app=****app, action=action)
    File "/usr/share/hue/build/env/lib/****python2.6/site-packages/**
    Django**-1.2.3-py2.6.egg/django/**db/**models/manager.py", line 132,
    in get
    return self.get_query_set().get(***args**, **kwargs)
    File "/usr/share/hue/build/env/lib/****python2.6/site-packages/**
    Django**-1.2.3-py2.6.egg/django/**db/**models/query.py", line 341, in
    get
    % self.model._meta.object_name)
    DoesNotExist: HuePermission matching query does not exist.
    [25/Oct/2012 14:50:38 +0000] upload ERROR Left-over upload
    file is not cleaned up: /tmp/hue-uploads/tmp.10.10.0.**1**
    47.1053231000472149035


    when i look @ the namenode log i see this:

    ERROR org.apache.hadoop.security.**Use**rGroupInformation:
    PriviledgedActionException as:hdfs (auth:PROXY) via hue (auth:SIMPLE) cause:
    java.io.**FileNotFoundExce**ption: File does not exist:
    /tmp/hue-uploads/tmp.10.10.0.**1**47.1053231000472149035


    not sure what the issue is. I'm running as hdfs user in hue when i log
    in. I ran the synchdb and tried to reupload and same error.
  • Anson Abraham at Oct 26, 2012 at 9:47 pm
    hue database:
    mysql> show tables;
    +-----------------------------+
    Tables_in_hue |
    +-----------------------------+
    auth_group |
    auth_group_permissions |
    auth_message |
    auth_permission |
    auth_user |
    auth_user_groups |
    auth_user_user_permissions |
    beeswax_metainstall |
    beeswax_queryhistory |
    beeswax_savedquery |
    desktop_userpreferences |
    django_admin_log |
    django_content_type |
    django_session |
    django_site |
    jobsub_checkforsetup |
    jobsub_jobdesign |
    jobsub_jobhistory |
    jobsub_oozieaction |
    jobsub_ooziedesign |
    jobsub_ooziejavaaction |
    jobsub_ooziemapreduceaction |
    jobsub_ooziestreamingaction |
    south_migrationhistory |
    useradmin_grouppermission |
    useradmin_huepermission |
    useradmin_ldapgroup |
    useradmin_userprofile |
    +-----------------------------+
    28 rows in set (0.00 sec)


    output from running synchdb:

    Syncing...
    No fixtures found.
    Migrating...
    Running migrations for desktop:
    - Nothing to migrate.
    Running migrations for beeswax:
    - Nothing to migrate.
    Running migrations for jobsub:
    - Nothing to migrate.
    Running migrations for oozie:
    - Nothing to migrate.
    Running migrations for useradmin:
    - Nothing to migrate.

    Synced:
    django.contrib.auth
    django.contrib.contenttypes
    django.contrib.sessions
    django.contrib.sites
    django.contrib.admin
    django_extensions
    south
    filebrowser
    help
    jobbrowser
    proxy
    shell
    Migrated:
    - desktop
    - beeswax
    - jobsub
    - oozie
    - useradmin


    what's in the synchdb.log file
    [26/Oct/2012 16:31:33 +0000] settings INFO Welcome to Hue 2.1.0
    [26/Oct/2012 16:31:33 +0000] settings WARNING secret_key should be
    configured
    [26/Oct/2012 13:31:34 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:34 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:34 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:34 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:34 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:34 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:34 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:34 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:34 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:34 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:34 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:34 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 16:31:36 +0000] settings INFO Welcome to Hue 2.1.0
    [26/Oct/2012 16:31:37 +0000] settings WARNING secret_key should be
    configured
    [26/Oct/2012 13:31:37 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:37 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:37 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:37 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:37 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:37 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:37 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:37 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:37 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:37 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:37 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    [26/Oct/2012 13:31:37 +0000] models INFO HuePermissions: 0 added,
    0 updated, 13 up to date, 0 stale
    On Friday, October 26, 2012 4:20:52 PM UTC-4, Romain Rigaux wrote:

    It seems that you have now 13 permissions instead of the 12 from your
    'select * from useradmin_huepermission;'. Can you also see the 'oozie_*'
    tables now by doing a 'show tables;' ?

    If you ran 'syncdb' multiple times all the outputs should be in:
    syncdb.log, syncdb.log1...

    Can you check again if it fixed the problem? You can get and send us the
    error logs from http://HUE_HOST:_HUE_PORT/logs.

    Romain


    On Thu, Oct 25, 2012 at 1:11 PM, Anson Abraham <anson....@gmail.com<javascript:>
    wrote:
    We recently did a yum update, b/c we added a node that had the lastest
    releases for Mapreduce, hdfs, etc...
    But it was CDH4 distribution initially. I don't recall what the prior
    version was before this past Sunday.


    this was output of synchdb:
    [25/Oct/2012 10:49:13 +0000] settings INFO Welcome to Hue 2.1.0
    [25/Oct/2012 10:49:14 +0000] settings WARNING secret_key should be
    configured
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    [25/Oct/2012 07:49:17 +0000] models INFO HuePermissions: 0
    added, 0 updated, 13 up to date, 0 stale
    ~


    As for mysql storage it's using MyISAM.
    On Thursday, October 25, 2012 4:06:33 PM UTC-4, Romain Rigaux wrote:

    Did you upgrade from 2.0?

    The Oozie App (new app in 2.1) tables (oozie_*) are not showing up and
    so the install is not complete. Can you send the output of syncdb? Are you
    using InnoDb in MySql? (show create table auth_group; -->ENGINE=InnoDB )

    Romain
    On Thu, Oct 25, 2012 at 12:04 PM, Anson Abraham wrote:

    I'm using mysql for it, but this is what i have:
    mysql> select * from useradmin_huepermission;
    +--------------+-------------+**----+-------------------------**+
    action | app | id | description |
    +--------------+-------------+**----+-------------------------**+
    access | about | 1 | launch this application |
    access | beeswax | 2 | launch this application |
    access | filebrowser | 3 | launch this application |
    access | help | 4 | launch this application |
    access | jobbrowser | 5 | launch this application |
    access | jobsub | 6 | launch this application |
    access | proxy | 7 | launch this application |
    launch_hbase | shell | 8 | Launch the HBase Shell |
    launch_pig | shell | 9 | Launch the Pig Shell |
    access | shell | 10 | launch this application |
    launch_flume | shell | 11 | Launch the Flume Shell |
    access | useradmin | 12 | launch this application |
    +--------------+-------------+**----+-------------------------**+
    12 rows

    mysql> show tables;
    +-----------------------------**+
    Tables_in_hue |
    +-----------------------------**+
    auth_group |
    auth_group_permissions |
    auth_message |
    auth_permission |
    auth_user |
    auth_user_groups |
    auth_user_user_permissions |
    beeswax_metainstall |
    beeswax_queryhistory |
    beeswax_savedquery |
    desktop_userpreferences |
    django_admin_log |
    django_content_type |
    django_session |
    django_site |
    jobsub_checkforsetup |
    jobsub_jobdesign |
    jobsub_jobhistory |
    jobsub_oozieaction |
    jobsub_ooziedesign |
    jobsub_ooziejavaaction |
    jobsub_ooziemapreduceaction |
    jobsub_ooziestreamingaction |
    south_migrationhistory |
    useradmin_grouppermission |
    useradmin_huepermission |
    useradmin_ldapgroup |
    useradmin_userprofile |
    +-----------------------------**+
    28 rows

    On Thursday, October 25, 2012 11:10:10 AM UTC-4, Anson Abraham wrote:

    I tried uploading a file through the hue file browser. But nothing
    seems to be happening.
    I'm running version: 2.1.0+210


    When i look @ the error logs i see something like this:

    [25/Oct/2012 14:47:31 +0000] models ERROR Permission object
    not available. Was syncdb run after installation?
    Traceback (most recent call last):
    File "/usr/share/hue/apps/**useradmin**/src/useradmin/**models.py",
    line 101, in has_hue_permission
    perm = self._lookup_permission(app, action)
    File "/usr/share/hue/apps/**useradmin**/src/useradmin/**models.py",
    line 96, in _lookup_permission
    return HuePermission.objects.get(app=****app, action=action)
    File "/usr/share/hue/build/env/lib/****python2.6/site-packages/**
    Django**-1.2.3-py2.6.egg/django/**db/**models/manager.py", line 132,
    in get
    return self.get_query_set().get(***args**, **kwargs)
    File "/usr/share/hue/build/env/lib/****python2.6/site-packages/**
    Django**-1.2.3-py2.6.egg/django/**db/**models/query.py", line 341, in
    get
    % self.model._meta.object_name)
    DoesNotExist: HuePermission matching query does not exist.
    [25/Oct/2012 14:50:38 +0000] upload ERROR Left-over upload
    file is not cleaned up: /tmp/hue-uploads/tmp.10.10.0.**1**
    47.1053231000472149035


    when i look @ the namenode log i see this:

    ERROR org.apache.hadoop.security.**Use**rGroupInformation:
    PriviledgedActionException as:hdfs (auth:PROXY) via hue (auth:SIMPLE) cause:
    java.io.**FileNotFoundExce**ption: File does not exist:
    /tmp/hue-uploads/tmp.10.10.0.**1**47.1053231000472149035


    not sure what the issue is. I'm running as hdfs user in hue when i
    log in. I ran the synchdb and tried to reupload and same error.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouphue-user @
categorieshadoop
postedOct 25, '12 at 3:10p
activeOct 26, '12 at 11:18p
posts7
users2
websitecloudera.com
irc#hadoop

2 users in discussion

Anson Abraham: 4 posts Romain Rigaux: 3 posts

People

Translate

site design / logo © 2022 Grokbase