incubator-bigtop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anatoli Fomenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BIGTOP-688) improve hue packaging via making virtual env relocatable and moving DB files into /var/lib/hue
Date Thu, 23 Aug 2012 19:18:43 GMT

    [ https://issues.apache.org/jira/browse/BIGTOP-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13440574#comment-13440574
] 

Anatoli Fomenko commented on BIGTOP-688:
----------------------------------------

Some comments on the patch:

# In install_hue.sh there are 2 variables related to logs: LOG_DIR and DESKTOP_LOG_DIR. While
they may be required by the environment, it may be cleaner to keep it to one.
# In hue-app-postinstall.tpl, hue-app.prerm.tpl and other app related files kept some variables
that are removed in other files, such as ROOT=/usr/lib/hue
# In a few places user name "hue" is used without defining USER=hue
# Build successful on Precise
# Package install successful

Tried a few commands. Met this problem:

(noformat)

 /usr/lib/hue/build/env/bin]$ sudo ./hue test
Traceback (most recent call last):
  File "./hue", line 9, in <module>
    load_entry_point('desktop==2.0.1', 'console_scripts', 'hue')()
  File "/usr/lib/hue/desktop/core/src/desktop/manage_entry.py", line
60, in entry
    execute_manager(settings)
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py",
line 438, in execute_manager
    utility.execute()
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py",
line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py",
line 261, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py",
line 67, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/utils/importlib.py",
line 35, in import_module
    __import__(name)
  File "/usr/lib/hue/desktop/core/src/desktop/management/commands/test.py",
line 24, in <module>
    from django_nose import nose_runner
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/django_nose-0.5-py2.7.egg/django_nose/nose_runner.py",
line 22, in <module>
    import nose
ImportError: No module named nose

(noformat)

After installing python-django-nose:

(noformat)

sudo ./hue test
Traceback (most recent call last):
  File "./hue", line 9, in <module>
    load_entry_point('desktop==2.0.1', 'console_scripts', 'hue')()
  File "/usr/lib/hue/desktop/core/src/desktop/manage_entry.py", line
60, in entry
    execute_manager(settings)
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py",
line 438, in execute_manager
    utility.execute()
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py",
line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py",
line 261, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py",
line 67, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/utils/importlib.py",
line 35, in import_module
    __import__(name)
  File "/usr/lib/hue/desktop/core/src/desktop/management/commands/test.py",
line 32, in <module>
    from desktop.management.commands import test_windmill
  File "/usr/lib/hue/desktop/core/src/desktop/management/commands/test_windmill.py",
line 27, in <module>
    from windmill.authoring import djangotest
ImportError: No module named windmill.authoring

(noformat)

Obviously, test_windmill also fails.

Most other commands run fine.

Off-topic question: why the build system does not detect change in the src files, only `rm
-rf <component>/build`?
                
> improve hue packaging via making virtual env relocatable and moving DB files into /var/lib/hue
> ----------------------------------------------------------------------------------------------
>
>                 Key: BIGTOP-688
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-688
>             Project: Bigtop
>          Issue Type: Improvement
>          Components: General
>    Affects Versions: 0.4.0
>            Reporter: Roman Shaposhnik
>            Assignee: Roman Shaposhnik
>             Fix For: 0.5.0
>
>         Attachments: BIGTOP-688.patch.txt
>
>
> Currently Hue packaging does unfortunate things with permissions and mutability of things
under /usr/lib/hue. We should make sure our virtual env is relocatable and can be used in
a R/O fashion and we should move mutable bits (desktop.db and app.reg) under /var/lib/hue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message