FAQ
Hi, two weeks ago it worked fine, but today i've cloned from github new
version of hue and get next error when running beeswax_install_examples:

(env)peter@peter:~/demo1/hue$ hue beeswax_install_examples
Traceback (most recent call last):
File "/home/peter/demo1/hue/build/env/bin/hue", line 8, in <module>
load_entry_point('desktop==2.1.0', 'console_scripts', 'hue')()
File "/home/peter/demo1/hue/desktop/core/src/desktop/manage_entry.py",
line 60, in entry
execute_manager(settings)
File
"/home/peter/demo1/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
"/home/peter/demo1/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
"/home/peter/demo1/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
"/home/peter/demo1/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
"/home/peter/demo1/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
"/home/peter/demo1/hue/apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py",
line 49, in <module>
from beeswax import models
File "/home/peter/demo1/hue/apps/beeswax/src/beeswax/models.py", line 30,
in <module>
from desktop.lib.exceptions import PopupException
File "/home/peter/demo1/hue/desktop/core/src/desktop/lib/exceptions.py",
line 24, in <module>
import desktop.lib.django_util
File "/home/peter/demo1/hue/desktop/core/src/desktop/lib/django_util.py",
line 39, in <module>
import desktop.lib.thrift_util
File "/home/peter/demo1/hue/desktop/core/src/desktop/lib/thrift_util.py",
line 35, in <module>
from desktop.lib.exceptions import StructuredThriftTransportException
ImportError: cannot import name StructuredThriftTransportException

If i run from shell "from desktop.lib.exceptions import
StructuredThriftTransportException" it works fine. Could you point me where
i'm wrong? Thank you.

Search Discussions

  • Romain Rigaux at Nov 22, 2012 at 5:44 pm
    I just tried and it worked for me (and I can see the class
    https://github.com/cloudera/hue/blob/master/desktop/core/src/desktop/lib/exceptions.py#L91).


    Can you do a 'make clean' then 'make apps' and then try again?

    Romain
    On Thu, Nov 22, 2012 at 2:59 AM, Peter Rudenko wrote:

    Hi, two weeks ago it worked fine, but today i've cloned from github new
    version of hue and get next error when running beeswax_install_examples:

    (env)peter@peter:~/demo1/hue$ hue beeswax_install_examples
    Traceback (most recent call last):
    File "/home/peter/demo1/hue/build/env/bin/hue", line 8, in <module>
    load_entry_point('desktop==2.1.0', 'console_scripts', 'hue')()
    File "/home/peter/demo1/hue/desktop/core/src/desktop/manage_entry.py",
    line 60, in entry
    execute_manager(settings)
    File
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/hue/apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py",
    line 49, in <module>
    from beeswax import models
    File "/home/peter/demo1/hue/apps/beeswax/src/beeswax/models.py", line
    30, in <module>
    from desktop.lib.exceptions import PopupException
    File "/home/peter/demo1/hue/desktop/core/src/desktop/lib/exceptions.py",
    line 24, in <module>
    import desktop.lib.django_util
    File
    "/home/peter/demo1/hue/desktop/core/src/desktop/lib/django_util.py", line
    39, in <module>
    import desktop.lib.thrift_util
    File
    "/home/peter/demo1/hue/desktop/core/src/desktop/lib/thrift_util.py", line
    35, in <module>
    from desktop.lib.exceptions import StructuredThriftTransportException
    ImportError: cannot import name StructuredThriftTransportException

    If i run from shell "from desktop.lib.exceptions import
    StructuredThriftTransportException" it works fine. Could you point me where
    i'm wrong? Thank you.
  • Romain Rigaux at Nov 26, 2012 at 9:36 pm
    +hue-user

    I can get it from this repository:
    http://www.datanucleus.org/downloads/maven2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar

    In the meantime I will check why Cloudera stopped hosting it. Let us know
    how it goes,

    Romain

    romain@runreal:~/projects/hue-master$ cd apps/beeswax/
    romain@runreal:~/projects/hue-master/apps/beeswax$ ls
    babel.cfg beeswax_server.sh data gen-py hueversion.py hueversion.pyc
    java java-lib Makefile regenerate_thrift.sh setup.py src static
    thrift
    romain@runreal:~/projects/hue-master/apps/beeswax$ export
    ROOT=~/projects/hue
    romain@runreal:~/projects/hue-master/apps/beeswax$ export
    ROOT=~/projects/hue^C
    romain@runreal:~/projects/hue-master/apps/beeswax$ make clean
    --- Cleaning beeswax
    running clean
    rm -Rf /home/romain/projects/hue-master/apps/beeswax/java-lib
    cd /home/romain/projects/hue-master/apps/beeswax/java && mvn clean || :
    [INFO] Scanning for projects...
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Building Hue Beeswax Server
    [INFO] task-segment: [clean]
    [INFO]
    ------------------------------------------------------------------------
    [INFO] [clean:clean {execution: default-clean}]
    [INFO] Deleting file set:
    /home/romain/projects/hue-master/apps/beeswax/java/target (included: [**],
    excluded: [])
    [INFO]
    ------------------------------------------------------------------------
    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: < 1 second
    [INFO] Finished at: Mon Nov 26 13:30:38 PST 2012
    [INFO] Final Memory: 9M/150M
    [INFO]
    ------------------------------------------------------------------------
    romain@runreal:~/projects/hue-master/apps/beeswax$ make
    The build targets for beeswax are: (*) is required
    compile : Compile beeswax
    egg-info * : Create a python egg for beeswax
    ext-eggs * : Create python eggs for external dependencies
    sdist * : Create a source distribution tree and tarball
    bdist : Create a built distribution tree
    install-bdist *: Install a built distribution to a target location
    ext-env-install: Install external dependencies into virtual-env
    ext-clean : Clean external dependencies
    clean * : Clean beeswax. Requires ext-clean
    distclean : Dist clean beeswax. Requires clean
    romain@runreal:~/projects/hue-master/apps/beeswax$ make compile
    --- Building Desktop beeswax
    cd /home/romain/projects/hue-master/apps/beeswax/java && mvn clean install
    -DskipTests
    [INFO] Scanning for projects...
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Building Hue Beeswax Server
    [INFO] task-segment: [clean, install]
    [INFO]
    ------------------------------------------------------------------------
    [INFO] [clean:clean {execution: default-clean}]
    [INFO] [build-helper:add-source {execution: add-gen-java}]
    [INFO] Source directory:
    /home/romain/projects/hue-master/apps/beeswax/java/src/main/gen-java added.
    [INFO] [resources:resources {execution: default-resources}]
    [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
    resources, i.e. build is platform dependent!
    [INFO] skip non existing resourceDirectory
    /home/romain/projects/hue-master/apps/beeswax/java/src/main/resources
    [INFO] snapshot
    org.apache.hadoop:hadoop-client:2.0.0-mr1-cdh4.0.0-SNAPSHOT: checking for
    updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-client:2.0.0-mr1-cdh4.0.0-SNAPSHOT: checking for
    updates from cdh.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:hadoop-root:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:hadoop-root:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:cdh-root:4.0.0-SNAPSHOT: checking for
    updates from cdh.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:cdh-root:4.0.0-SNAPSHOT: checking for
    updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-common:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-common:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-project-dist:2.0.0-cdh4.0.0-SNAPSHOT: checking for
    updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-project-dist:2.0.0-cdh4.0.0-SNAPSHOT: checking for
    updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-project:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-project:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-main:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-main:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-auth:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-auth:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-auth:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from apache.snapshots.https
    [INFO] snapshot org.apache.zookeeper:zookeeper:3.4.3-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.zookeeper:zookeeper:3.4.3-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.zookeeper:zookeeper:3.4.3-cdh4.0.0-SNAPSHOT:
    checking for updates from apache.snapshots.https
    [INFO] snapshot com.cloudera.cdh:zookeeper-root:3.4.3-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:zookeeper-root:3.4.3-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:zookeeper-root:3.4.3-cdh4.0.0-SNAPSHOT:
    checking for updates from apache.snapshots.https
    [INFO] snapshot org.apache.hadoop:hadoop-hdfs:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-hdfs:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-core:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-core:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-metastore:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-metastore:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:hive-root:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:hive-root:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-common:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-common:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-shims:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-shims:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-serde:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-serde:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    Downloading:
    https://repository.cloudera.com/content/groups/cdh-releases-rcs/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository cloudera.repos (
    https://repository.cloudera.com/content/groups/cdh-releases-rcs)
    Downloading:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [WARNING] Unable to get resource 'javax.jdo:jdo2-api:pom:2.3-ec' from
    repository cloudera.snapshots.repo (
    https://repository.cloudera.com/content/repositories/snapshots): Error
    transferring file: Server returned HTTP response code: 409 for URL:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    Downloading:
    https://repository.cloudera.com/content/repositories/releases/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository cdh.releases.repo (
    https://repository.cloudera.com/content/repositories/releases)
    Downloading:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [WARNING] Unable to get resource 'javax.jdo:jdo2-api:pom:2.3-ec' from
    repository cdh.snapshots.repo (
    https://repository.cloudera.com/content/repositories/snapshots): Error
    transferring file: Server returned HTTP response code: 409 for URL:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    Downloading:
    https://repository.cloudera.com/content/repositories/third-party/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository cloudera.thirdparty.repo (
    https://repository.cloudera.com/content/repositories/third-party)
    Downloading:
    http://www.datanucleus.org/downloads/maven2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository datanucleus (http://www.datanucleus.org/downloads/maven2)
    Downloading:
    http://download.java.net/maven/2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository java.net repository (http://download.java.net/maven/2)
    Downloading:
    https://repository.cloudera.com/content/repositories/third-party/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository cdh.thirdparty.repo (
    https://repository.cloudera.com/content/repositories/third-party)
    Downloading:
    http://repo1.maven.org/maven2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository central (http://repo1.maven.org/maven2)
    [INFO] snapshot org.apache.hive:hive-exec:0.8.1-cdh4.0.0-SNAPSHOT: checking
    for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-exec:0.8.1-cdh4.0.0-SNAPSHOT: checking
    for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-test:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-test:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    Downloading:
    https://repository.cloudera.com/content/groups/cdh-releases-rcs/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:jar:2.3-ec' in
    repository cloudera.repos (
    https://repository.cloudera.com/content/groups/cdh-releases-rcs)
    Downloading:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    [WARNING] Unable to get resource 'javax.jdo:jdo2-api:jar:2.3-ec' from
    repository cloudera.snapshots.repo (
    https://repository.cloudera.com/content/repositories/snapshots): Error
    transferring file: Server returned HTTP response code: 409 for URL:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    Downloading:
    https://repository.cloudera.com/content/repositories/releases/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:jar:2.3-ec' in
    repository cdh.releases.repo (
    https://repository.cloudera.com/content/repositories/releases)
    Downloading:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    [WARNING] Unable to get resource 'javax.jdo:jdo2-api:jar:2.3-ec' from
    repository cdh.snapshots.repo (
    https://repository.cloudera.com/content/repositories/snapshots): Error
    transferring file: Server returned HTTP response code: 409 for URL:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    Downloading:
    https://repository.cloudera.com/content/repositories/third-party/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:jar:2.3-ec' in
    repository cloudera.thirdparty.repo (
    https://repository.cloudera.com/content/repositories/third-party)
    Downloading:
    http://www.datanucleus.org/downloads/maven2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    193K downloaded (jdo2-api-2.3-ec.jar)
    [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for
    javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar - IGNORING
    [INFO] [compiler:compile {execution: default-compile}]
    [WARNING] File encoding has not been set, using platform encoding UTF-8,
    i.e. build is platform dependent!
    [INFO] Compiling 21 source files to
    /home/romain/projects/hue-master/apps/beeswax/java/target/classes
    [INFO] [resources:testResources {execution: default-testResources}]
    [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
    resources, i.e. build is platform dependent!
    [INFO] skip non existing resourceDirectory
    /home/romain/projects/hue-master/apps/beeswax/java/src/test/resources
    [INFO] [compiler:testCompile {execution: default-testCompile}]
    [WARNING] File encoding has not been set, using platform encoding UTF-8,
    i.e. build is platform dependent!
    [INFO] Compiling 2 source files to
    /home/romain/projects/hue-master/apps/beeswax/java/target/test-classes
    [INFO] [surefire:test {execution: default-test}]
    [INFO] Tests are skipped.
    [INFO] [jar:jar {execution: default-jar}]
    [INFO] Building jar:
    /home/romain/projects/hue-master/apps/beeswax/java/target/beeswax-server-2.1.0-SNAPSHOT.jar
    [INFO] [jar:test-jar {execution: test-package}]
    [INFO] Building jar:
    /home/romain/projects/hue-master/apps/beeswax/java/target/beeswax-server-2.1.0-SNAPSHOT-tests.jar
    [INFO] [install:install {execution: default-install}]
    [INFO] Installing
    /home/romain/projects/hue-master/apps/beeswax/java/target/beeswax-server-2.1.0-SNAPSHOT.jar
    to
    /home/romain/.m2/repository/com/cloudera/hue/beeswax-server/2.1.0-SNAPSHOT/beeswax-server-2.1.0-SNAPSHOT.jar
    [INFO] Installing
    /home/romain/projects/hue-master/apps/beeswax/java/target/beeswax-server-2.1.0-SNAPSHOT-tests.jar
    to
    /home/romain/.m2/repository/com/cloudera/hue/beeswax-server/2.1.0-SNAPSHOT/beeswax-server-2.1.0-SNAPSHOT-tests.jar
    [INFO]
    ------------------------------------------------------------------------
    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: 20 seconds
    [INFO] Finished at: Mon Nov 26 13:31:16 PST 2012
    [INFO] Final Memory: 53M/349M
    [INFO]
    ------------------------------------------------------------------------


    On Sat, Nov 24, 2012 at 10:34 AM, Peter Rudenko wrote:

    Thanks for fixing, seems to work now. But build fails anyway:

    [ERROR] Failed to execute goal on project beeswax-server: Could not
    resolve dependencies for project
    com.cloudera.hue:beeswax-server:jar:2.1.0-SNAPSHOT: Failed to collect
    dependencies for
    [org.apache.hadoop:hadoop-client:jar:2.0.0-mr1-cdh4.0.0-SNAPSHOT (compile),
    org.apache.hive:hive-metastore:jar:0.8.1-cdh4.0.0-SNAPSHOT (compile),
    org.apache.hive:hive-exec:jar:0.8.1-cdh4.0.0-SNAPSHOT (compile),
    org.apache.hive:hive-common:jar:0.8.1-cdh4.0.0-SNAPSHOT (compile),
    org.apache.thrift:libthrift:jar:0.7.0 (compile),
    org.apache.thrift:libfb303:jar:0.7.0 (compile),
    org.slf4j:slf4j-api:jar:1.6.1 (compile), org.slf4j:slf4j-log4j12:jar:1.6.1
    (compile), junit:junit:jar:4.8.1 (test),
    org.apache.hadoop:hadoop-test:jar:2.0.0-mr1-cdh4.0.0-SNAPSHOT (test)]:
    Failed to read artifact descriptor for javax.jdo:jdo2-api:jar:2.3-ec: *Could
    not transfer artifact javax.jdo:jdo2-api:pom:2.3-ec from/to
    cloudera.snapshots.repo (
    https://repository.cloudera.com/content/repositories/snapshots): Failed
    to transfer file:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom.
    Return code is: 409, ReasonPhrase:The repository 'libs-snapshot-local'
    rejected the artifact
    'libs-snapshot-local:javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom' due to
    its snapshot/release handling policy.. ->*




    On 24.11.12 17:23, Peter Rudenko wrote:

    Hi Romain, sorry for disturb. Is cloudera repository down? When i build
    apps i get next error:

    [ERROR] The build could not read 1 project -> [Help 1]
    [ERROR]
    [ERROR] The project com.cloudera.hue:hue-plugins:2.1.0-SNAPSHOT
    (/home/sandbox/hue_src/desktop/libs/hadoop/java/pom.xml) has 1 error
    [ERROR] Non-resolvable parent POM for
    com.cloudera.hue:hue-parent:2.1.0-SNAPSHOT: Could not transfer artifact
    com.cloudera:parent:pom:1.0-SNAPSHOT from/to cloudera.snapshots.repo (
    https://repository.cloudera.com/content/repositories/snapshots): Failed
    to transfer file:
    https://repository.cloudera.com/content/repositories/snapshots/com/cloudera/parent/1.0-SNAPSHOT/parent-1.0-SNAPSHOT.pom.
    Return code is: 502, ReasonPhrase:Proxy Error. and 'parent.relativePath'
    points at wrong local POM @ com.cloudera.hue:hue-parent:2.1.0-SNAPSHOT,
    /home/sandbox/hue_src/maven/pom.xml, line 22, column 11 -> [Help 2]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the
    -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions,
    please read the following articles:
    [ERROR] [Help 1]
    http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
    [ERROR] [Help 2]
    http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException




    On 22.11.12 19:44, Romain Rigaux wrote:

    I just tried and it worked for me (and I can see the class
    https://github.com/cloudera/hue/blob/master/desktop/core/src/desktop/lib/exceptions.py#L91).


    Can you do a 'make clean' then 'make apps' and then try again?

    Romain
    On Thu, Nov 22, 2012 at 2:59 AM, Peter Rudenko wrote:

    Hi, two weeks ago it worked fine, but today i've cloned from github new
    version of hue and get next error when running beeswax_install_examples:

    (env)peter@peter:~/demo1/hue$ hue beeswax_install_examples
    Traceback (most recent call last):
    File "/home/peter/demo1/hue/build/env/bin/hue", line 8, in <module>
    load_entry_point('desktop==2.1.0', 'console_scripts', 'hue')()
    File "/home/peter/demo1/hue/desktop/core/src/desktop/manage_entry.py",
    line 60, in entry
    execute_manager(settings)
    File
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/hue/apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py",
    line 49, in <module>
    from beeswax import models
    File "/home/peter/demo1/hue/apps/beeswax/src/beeswax/models.py", line
    30, in <module>
    from desktop.lib.exceptions import PopupException
    File
    "/home/peter/demo1/hue/desktop/core/src/desktop/lib/exceptions.py", line
    24, in <module>
    import desktop.lib.django_util
    File
    "/home/peter/demo1/hue/desktop/core/src/desktop/lib/django_util.py", line
    39, in <module>
    import desktop.lib.thrift_util
    File
    "/home/peter/demo1/hue/desktop/core/src/desktop/lib/thrift_util.py", line
    35, in <module>
    from desktop.lib.exceptions import StructuredThriftTransportException
    ImportError: cannot import name StructuredThriftTransportException

    If i run from shell "from desktop.lib.exceptions import
    StructuredThriftTransportException" it works fine. Could you point me where
    i'm wrong? Thank you.

  • Romain Rigaux at Nov 27, 2012 at 12:50 am
    We just added the repository do the build:
    https://github.com/cloudera/hue/commit/d9e103f63d6bfb8746eec5a17a905b8c77d0b4e1

    Romain
    On Mon, Nov 26, 2012 at 1:36 PM, Romain Rigaux wrote:

    +hue-user

    I can get it from this repository:
    http://www.datanucleus.org/downloads/maven2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar

    In the meantime I will check why Cloudera stopped hosting it. Let us know
    how it goes,

    Romain

    romain@runreal:~/projects/hue-master$ cd apps/beeswax/
    romain@runreal:~/projects/hue-master/apps/beeswax$ ls
    babel.cfg beeswax_server.sh data gen-py hueversion.py hueversion.pyc
    java java-lib Makefile regenerate_thrift.sh setup.py src static
    thrift
    romain@runreal:~/projects/hue-master/apps/beeswax$ export
    ROOT=~/projects/hue
    romain@runreal:~/projects/hue-master/apps/beeswax$ export
    ROOT=~/projects/hue^C
    romain@runreal:~/projects/hue-master/apps/beeswax$ make clean
    --- Cleaning beeswax
    running clean
    rm -Rf /home/romain/projects/hue-master/apps/beeswax/java-lib
    cd /home/romain/projects/hue-master/apps/beeswax/java && mvn clean || :
    [INFO] Scanning for projects...
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Building Hue Beeswax Server
    [INFO] task-segment: [clean]
    [INFO]
    ------------------------------------------------------------------------
    [INFO] [clean:clean {execution: default-clean}]
    [INFO] Deleting file set:
    /home/romain/projects/hue-master/apps/beeswax/java/target (included: [**],
    excluded: [])
    [INFO]
    ------------------------------------------------------------------------
    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: < 1 second
    [INFO] Finished at: Mon Nov 26 13:30:38 PST 2012
    [INFO] Final Memory: 9M/150M
    [INFO]
    ------------------------------------------------------------------------
    romain@runreal:~/projects/hue-master/apps/beeswax$ make
    The build targets for beeswax are: (*) is required
    compile : Compile beeswax
    egg-info * : Create a python egg for beeswax
    ext-eggs * : Create python eggs for external dependencies
    sdist * : Create a source distribution tree and tarball
    bdist : Create a built distribution tree
    install-bdist *: Install a built distribution to a target location
    ext-env-install: Install external dependencies into virtual-env
    ext-clean : Clean external dependencies
    clean * : Clean beeswax. Requires ext-clean
    distclean : Dist clean beeswax. Requires clean
    romain@runreal:~/projects/hue-master/apps/beeswax$ make compile
    --- Building Desktop beeswax
    cd /home/romain/projects/hue-master/apps/beeswax/java && mvn clean install
    -DskipTests
    [INFO] Scanning for projects...
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Building Hue Beeswax Server
    [INFO] task-segment: [clean, install]
    [INFO]
    ------------------------------------------------------------------------
    [INFO] [clean:clean {execution: default-clean}]
    [INFO] [build-helper:add-source {execution: add-gen-java}]
    [INFO] Source directory:
    /home/romain/projects/hue-master/apps/beeswax/java/src/main/gen-java added.
    [INFO] [resources:resources {execution: default-resources}]
    [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
    resources, i.e. build is platform dependent!
    [INFO] skip non existing resourceDirectory
    /home/romain/projects/hue-master/apps/beeswax/java/src/main/resources
    [INFO] snapshot
    org.apache.hadoop:hadoop-client:2.0.0-mr1-cdh4.0.0-SNAPSHOT: checking for
    updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-client:2.0.0-mr1-cdh4.0.0-SNAPSHOT: checking for
    updates from cdh.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:hadoop-root:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:hadoop-root:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:cdh-root:4.0.0-SNAPSHOT: checking for
    updates from cdh.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:cdh-root:4.0.0-SNAPSHOT: checking for
    updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-common:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-common:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-project-dist:2.0.0-cdh4.0.0-SNAPSHOT: checking for
    updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-project-dist:2.0.0-cdh4.0.0-SNAPSHOT: checking for
    updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-project:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-project:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-main:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-main:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-auth:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-auth:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-auth:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from apache.snapshots.https
    [INFO] snapshot org.apache.zookeeper:zookeeper:3.4.3-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.zookeeper:zookeeper:3.4.3-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.zookeeper:zookeeper:3.4.3-cdh4.0.0-SNAPSHOT:
    checking for updates from apache.snapshots.https
    [INFO] snapshot com.cloudera.cdh:zookeeper-root:3.4.3-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:zookeeper-root:3.4.3-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:zookeeper-root:3.4.3-cdh4.0.0-SNAPSHOT:
    checking for updates from apache.snapshots.https
    [INFO] snapshot org.apache.hadoop:hadoop-hdfs:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-hdfs:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-core:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-core:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-metastore:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-metastore:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:hive-root:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:hive-root:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-common:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-common:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-shims:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-shims:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-serde:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-serde:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    Downloading:
    https://repository.cloudera.com/content/groups/cdh-releases-rcs/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository cloudera.repos (
    https://repository.cloudera.com/content/groups/cdh-releases-rcs)
    Downloading:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [WARNING] Unable to get resource 'javax.jdo:jdo2-api:pom:2.3-ec' from
    repository cloudera.snapshots.repo (
    https://repository.cloudera.com/content/repositories/snapshots): Error
    transferring file: Server returned HTTP response code: 409 for URL:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    Downloading:
    https://repository.cloudera.com/content/repositories/releases/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository cdh.releases.repo (
    https://repository.cloudera.com/content/repositories/releases)
    Downloading:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [WARNING] Unable to get resource 'javax.jdo:jdo2-api:pom:2.3-ec' from
    repository cdh.snapshots.repo (
    https://repository.cloudera.com/content/repositories/snapshots): Error
    transferring file: Server returned HTTP response code: 409 for URL:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    Downloading:
    https://repository.cloudera.com/content/repositories/third-party/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository cloudera.thirdparty.repo (
    https://repository.cloudera.com/content/repositories/third-party)
    Downloading:
    http://www.datanucleus.org/downloads/maven2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository datanucleus (http://www.datanucleus.org/downloads/maven2)
    Downloading:
    http://download.java.net/maven/2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository java.net repository (http://download.java.net/maven/2)
    Downloading:
    https://repository.cloudera.com/content/repositories/third-party/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository cdh.thirdparty.repo (
    https://repository.cloudera.com/content/repositories/third-party)
    Downloading:
    http://repo1.maven.org/maven2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository central (http://repo1.maven.org/maven2)
    [INFO] snapshot org.apache.hive:hive-exec:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-exec:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-test:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hadoop:hadoop-test:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    Downloading:
    https://repository.cloudera.com/content/groups/cdh-releases-rcs/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:jar:2.3-ec' in
    repository cloudera.repos (
    https://repository.cloudera.com/content/groups/cdh-releases-rcs)
    Downloading:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    [WARNING] Unable to get resource 'javax.jdo:jdo2-api:jar:2.3-ec' from
    repository cloudera.snapshots.repo (
    https://repository.cloudera.com/content/repositories/snapshots): Error
    transferring file: Server returned HTTP response code: 409 for URL:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    Downloading:
    https://repository.cloudera.com/content/repositories/releases/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:jar:2.3-ec' in
    repository cdh.releases.repo (
    https://repository.cloudera.com/content/repositories/releases)
    Downloading:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    [WARNING] Unable to get resource 'javax.jdo:jdo2-api:jar:2.3-ec' from
    repository cdh.snapshots.repo (
    https://repository.cloudera.com/content/repositories/snapshots): Error
    transferring file: Server returned HTTP response code: 409 for URL:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    Downloading:
    https://repository.cloudera.com/content/repositories/third-party/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:jar:2.3-ec' in
    repository cloudera.thirdparty.repo (
    https://repository.cloudera.com/content/repositories/third-party)
    Downloading:
    http://www.datanucleus.org/downloads/maven2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    193K downloaded (jdo2-api-2.3-ec.jar)
    [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for
    javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar - IGNORING
    [INFO] [compiler:compile {execution: default-compile}]
    [WARNING] File encoding has not been set, using platform encoding UTF-8,
    i.e. build is platform dependent!
    [INFO] Compiling 21 source files to
    /home/romain/projects/hue-master/apps/beeswax/java/target/classes
    [INFO] [resources:testResources {execution: default-testResources}]
    [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
    resources, i.e. build is platform dependent!
    [INFO] skip non existing resourceDirectory
    /home/romain/projects/hue-master/apps/beeswax/java/src/test/resources
    [INFO] [compiler:testCompile {execution: default-testCompile}]
    [WARNING] File encoding has not been set, using platform encoding UTF-8,
    i.e. build is platform dependent!
    [INFO] Compiling 2 source files to
    /home/romain/projects/hue-master/apps/beeswax/java/target/test-classes
    [INFO] [surefire:test {execution: default-test}]
    [INFO] Tests are skipped.
    [INFO] [jar:jar {execution: default-jar}]
    [INFO] Building jar:
    /home/romain/projects/hue-master/apps/beeswax/java/target/beeswax-server-2.1.0-SNAPSHOT.jar
    [INFO] [jar:test-jar {execution: test-package}]
    [INFO] Building jar:
    /home/romain/projects/hue-master/apps/beeswax/java/target/beeswax-server-2.1.0-SNAPSHOT-tests.jar
    [INFO] [install:install {execution: default-install}]
    [INFO] Installing
    /home/romain/projects/hue-master/apps/beeswax/java/target/beeswax-server-2.1.0-SNAPSHOT.jar
    to
    /home/romain/.m2/repository/com/cloudera/hue/beeswax-server/2.1.0-SNAPSHOT/beeswax-server-2.1.0-SNAPSHOT.jar
    [INFO] Installing
    /home/romain/projects/hue-master/apps/beeswax/java/target/beeswax-server-2.1.0-SNAPSHOT-tests.jar
    to
    /home/romain/.m2/repository/com/cloudera/hue/beeswax-server/2.1.0-SNAPSHOT/beeswax-server-2.1.0-SNAPSHOT-tests.jar
    [INFO]
    ------------------------------------------------------------------------
    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: 20 seconds
    [INFO] Finished at: Mon Nov 26 13:31:16 PST 2012
    [INFO] Final Memory: 53M/349M
    [INFO]
    ------------------------------------------------------------------------



    On Sat, Nov 24, 2012 at 10:34 AM, Peter Rudenko wrote:

    Thanks for fixing, seems to work now. But build fails anyway:

    [ERROR] Failed to execute goal on project beeswax-server: Could not
    resolve dependencies for project
    com.cloudera.hue:beeswax-server:jar:2.1.0-SNAPSHOT: Failed to collect
    dependencies for
    [org.apache.hadoop:hadoop-client:jar:2.0.0-mr1-cdh4.0.0-SNAPSHOT (compile),
    org.apache.hive:hive-metastore:jar:0.8.1-cdh4.0.0-SNAPSHOT (compile),
    org.apache.hive:hive-exec:jar:0.8.1-cdh4.0.0-SNAPSHOT (compile),
    org.apache.hive:hive-common:jar:0.8.1-cdh4.0.0-SNAPSHOT (compile),
    org.apache.thrift:libthrift:jar:0.7.0 (compile),
    org.apache.thrift:libfb303:jar:0.7.0 (compile),
    org.slf4j:slf4j-api:jar:1.6.1 (compile), org.slf4j:slf4j-log4j12:jar:1.6.1
    (compile), junit:junit:jar:4.8.1 (test),
    org.apache.hadoop:hadoop-test:jar:2.0.0-mr1-cdh4.0.0-SNAPSHOT (test)]:
    Failed to read artifact descriptor for javax.jdo:jdo2-api:jar:2.3-ec: *Could
    not transfer artifact javax.jdo:jdo2-api:pom:2.3-ec from/to
    cloudera.snapshots.repo (
    https://repository.cloudera.com/content/repositories/snapshots): Failed
    to transfer file:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom.
    Return code is: 409, ReasonPhrase:The repository 'libs-snapshot-local'
    rejected the artifact
    'libs-snapshot-local:javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom' due to
    its snapshot/release handling policy.. ->*




    On 24.11.12 17:23, Peter Rudenko wrote:

    Hi Romain, sorry for disturb. Is cloudera repository down? When i build
    apps i get next error:

    [ERROR] The build could not read 1 project -> [Help 1]
    [ERROR]
    [ERROR] The project com.cloudera.hue:hue-plugins:2.1.0-SNAPSHOT
    (/home/sandbox/hue_src/desktop/libs/hadoop/java/pom.xml) has 1 error
    [ERROR] Non-resolvable parent POM for
    com.cloudera.hue:hue-parent:2.1.0-SNAPSHOT: Could not transfer artifact
    com.cloudera:parent:pom:1.0-SNAPSHOT from/to cloudera.snapshots.repo (
    https://repository.cloudera.com/content/repositories/snapshots): Failed
    to transfer file:
    https://repository.cloudera.com/content/repositories/snapshots/com/cloudera/parent/1.0-SNAPSHOT/parent-1.0-SNAPSHOT.pom.
    Return code is: 502, ReasonPhrase:Proxy Error. and 'parent.relativePath'
    points at wrong local POM @ com.cloudera.hue:hue-parent:2.1.0-SNAPSHOT,
    /home/sandbox/hue_src/maven/pom.xml, line 22, column 11 -> [Help 2]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the
    -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions,
    please read the following articles:
    [ERROR] [Help 1]
    http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
    [ERROR] [Help 2]
    http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException




    On 22.11.12 19:44, Romain Rigaux wrote:

    I just tried and it worked for me (and I can see the class
    https://github.com/cloudera/hue/blob/master/desktop/core/src/desktop/lib/exceptions.py#L91).


    Can you do a 'make clean' then 'make apps' and then try again?

    Romain
    On Thu, Nov 22, 2012 at 2:59 AM, Peter Rudenko wrote:

    Hi, two weeks ago it worked fine, but today i've cloned from github new
    version of hue and get next error when running beeswax_install_examples:

    (env)peter@peter:~/demo1/hue$ hue beeswax_install_examples
    Traceback (most recent call last):
    File "/home/peter/demo1/hue/build/env/bin/hue", line 8, in <module>
    load_entry_point('desktop==2.1.0', 'console_scripts', 'hue')()
    File "/home/peter/demo1/hue/desktop/core/src/desktop/manage_entry.py",
    line 60, in entry
    execute_manager(settings)
    File
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/hue/apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py",
    line 49, in <module>
    from beeswax import models
    File "/home/peter/demo1/hue/apps/beeswax/src/beeswax/models.py", line
    30, in <module>
    from desktop.lib.exceptions import PopupException
    File
    "/home/peter/demo1/hue/desktop/core/src/desktop/lib/exceptions.py", line
    24, in <module>
    import desktop.lib.django_util
    File
    "/home/peter/demo1/hue/desktop/core/src/desktop/lib/django_util.py", line
    39, in <module>
    import desktop.lib.thrift_util
    File
    "/home/peter/demo1/hue/desktop/core/src/desktop/lib/thrift_util.py", line
    35, in <module>
    from desktop.lib.exceptions import StructuredThriftTransportException
    ImportError: cannot import name StructuredThriftTransportException

    If i run from shell "from desktop.lib.exceptions import
    StructuredThriftTransportException" it works fine. Could you point me where
    i'm wrong? Thank you.

  • Abraham Elmahrek at Nov 27, 2012 at 9:23 pm
    Hi Peter,

    What file system is this version of Hue running on top of?

    -Abe
    On 11/26/12 4:50 PM, Romain Rigaux wrote:
    We just added the repository do the build:
    https://github.com/cloudera/hue/commit/d9e103f63d6bfb8746eec5a17a905b8c77d0b4e1

    Romain

    On Mon, Nov 26, 2012 at 1:36 PM, Romain Rigaux wrote:

    +hue-user

    I can get it from this repository:
    http://www.datanucleus.org/downloads/maven2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar

    In the meantime I will check why Cloudera stopped hosting it. Let
    us know how it goes,

    Romain

    romain@runreal:~/projects/hue-master$ cd apps/beeswax/
    romain@runreal:~/projects/hue-master/apps/beeswax$ ls
    babel.cfg beeswax_server.sh data gen-py hueversion.py
    hueversion.pyc java java-lib Makefile regenerate_thrift.sh
    setup.py src static thrift
    romain@runreal:~/projects/hue-master/apps/beeswax$ export
    ROOT=~/projects/hue
    romain@runreal:~/projects/hue-master/apps/beeswax$ export
    ROOT=~/projects/hue^C
    romain@runreal:~/projects/hue-master/apps/beeswax$ make clean
    --- Cleaning beeswax
    running clean
    rm -Rf /home/romain/projects/hue-master/apps/beeswax/java-lib
    cd /home/romain/projects/hue-master/apps/beeswax/java && mvn
    clean || :
    [INFO] Scanning for projects...
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Building Hue Beeswax Server
    [INFO] task-segment: [clean]
    [INFO]
    ------------------------------------------------------------------------
    [INFO] [clean:clean {execution: default-clean}]
    [INFO] Deleting file set:
    /home/romain/projects/hue-master/apps/beeswax/java/target
    (included: [**], excluded: [])
    [INFO]
    ------------------------------------------------------------------------
    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: < 1 second
    [INFO] Finished at: Mon Nov 26 13:30:38 PST 2012
    [INFO] Final Memory: 9M/150M
    [INFO]
    ------------------------------------------------------------------------
    romain@runreal:~/projects/hue-master/apps/beeswax$ make
    The build targets for beeswax are: (*) is required
    compile : Compile beeswax
    egg-info * : Create a python egg for beeswax
    ext-eggs * : Create python eggs for external dependencies
    sdist * : Create a source distribution tree and tarball
    bdist : Create a built distribution tree
    install-bdist *: Install a built distribution to a target location
    ext-env-install: Install external dependencies into virtual-env
    ext-clean : Clean external dependencies
    clean * : Clean beeswax. Requires ext-clean
    distclean : Dist clean beeswax. Requires clean
    romain@runreal:~/projects/hue-master/apps/beeswax$ make compile
    --- Building Desktop beeswax
    cd /home/romain/projects/hue-master/apps/beeswax/java && mvn clean
    install -DskipTests
    [INFO] Scanning for projects...
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Building Hue Beeswax Server
    [INFO] task-segment: [clean, install]
    [INFO]
    ------------------------------------------------------------------------
    [INFO] [clean:clean {execution: default-clean}]
    [INFO] [build-helper:add-source {execution: add-gen-java}]
    [INFO] Source directory:
    /home/romain/projects/hue-master/apps/beeswax/java/src/main/gen-java
    added.
    [INFO] [resources:resources {execution: default-resources}]
    [WARNING] Using platform encoding (UTF-8 actually) to copy
    filtered resources, i.e. build is platform dependent!
    [INFO] skip non existing resourceDirectory
    /home/romain/projects/hue-master/apps/beeswax/java/src/main/resources
    [INFO] snapshot
    org.apache.hadoop:hadoop-client:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-client:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot
    com.cloudera.cdh:hadoop-root:2.0.0-mr1-cdh4.0.0-SNAPSHOT: checking
    for updates from cloudera.snapshots.repo
    [INFO] snapshot
    com.cloudera.cdh:hadoop-root:2.0.0-mr1-cdh4.0.0-SNAPSHOT: checking
    for updates from cdh.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:cdh-root:4.0.0-SNAPSHOT: checking
    for updates from cdh.snapshots.repo
    [INFO] snapshot com.cloudera.cdh:cdh-root:4.0.0-SNAPSHOT: checking
    for updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-common:2.0.0-cdh4.0.0-SNAPSHOT: checking
    for updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-common:2.0.0-cdh4.0.0-SNAPSHOT: checking
    for updates from cdh.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-project-dist:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-project-dist:2.0.0-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-project:2.0.0-cdh4.0.0-SNAPSHOT: checking
    for updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-project:2.0.0-cdh4.0.0-SNAPSHOT: checking
    for updates from cdh.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-main:2.0.0-cdh4.0.0-SNAPSHOT: checking
    for updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-main:2.0.0-cdh4.0.0-SNAPSHOT: checking
    for updates from cdh.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-auth:2.0.0-cdh4.0.0-SNAPSHOT: checking
    for updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-auth:2.0.0-cdh4.0.0-SNAPSHOT: checking
    for updates from cdh.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-auth:2.0.0-cdh4.0.0-SNAPSHOT: checking
    for updates from apache.snapshots.https
    [INFO] snapshot
    org.apache.zookeeper:zookeeper:3.4.3-cdh4.0.0-SNAPSHOT: checking
    for updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.zookeeper:zookeeper:3.4.3-cdh4.0.0-SNAPSHOT: checking
    for updates from cdh.snapshots.repo
    [INFO] snapshot
    org.apache.zookeeper:zookeeper:3.4.3-cdh4.0.0-SNAPSHOT: checking
    for updates from apache.snapshots.https
    [INFO] snapshot
    com.cloudera.cdh:zookeeper-root:3.4.3-cdh4.0.0-SNAPSHOT: checking
    for updates from cloudera.snapshots.repo
    [INFO] snapshot
    com.cloudera.cdh:zookeeper-root:3.4.3-cdh4.0.0-SNAPSHOT: checking
    for updates from cdh.snapshots.repo
    [INFO] snapshot
    com.cloudera.cdh:zookeeper-root:3.4.3-cdh4.0.0-SNAPSHOT: checking
    for updates from apache.snapshots.https
    [INFO] snapshot
    org.apache.hadoop:hadoop-hdfs:2.0.0-cdh4.0.0-SNAPSHOT: checking
    for updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-hdfs:2.0.0-cdh4.0.0-SNAPSHOT: checking
    for updates from cdh.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-core:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-core:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot
    org.apache.hive:hive-metastore:0.8.1-cdh4.0.0-SNAPSHOT: checking
    for updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hive:hive-metastore:0.8.1-cdh4.0.0-SNAPSHOT: checking
    for updates from cdh.snapshots.repo
    [INFO] snapshot
    com.cloudera.cdh:hive-root:0.8.1-cdh4.0.0-SNAPSHOT: checking for
    updates from cloudera.snapshots.repo
    [INFO] snapshot
    com.cloudera.cdh:hive-root:0.8.1-cdh4.0.0-SNAPSHOT: checking for
    updates from cdh.snapshots.repo
    [INFO] snapshot
    org.apache.hive:hive-common:0.8.1-cdh4.0.0-SNAPSHOT: checking for
    updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hive:hive-common:0.8.1-cdh4.0.0-SNAPSHOT: checking for
    updates from cdh.snapshots.repo
    [INFO] snapshot
    org.apache.hive:hive-shims:0.8.1-cdh4.0.0-SNAPSHOT: checking for
    updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hive:hive-shims:0.8.1-cdh4.0.0-SNAPSHOT: checking for
    updates from cdh.snapshots.repo
    [INFO] snapshot
    org.apache.hive:hive-serde:0.8.1-cdh4.0.0-SNAPSHOT: checking for
    updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hive:hive-serde:0.8.1-cdh4.0.0-SNAPSHOT: checking for
    updates from cdh.snapshots.repo
    Downloading:
    https://repository.cloudera.com/content/groups/cdh-releases-rcs/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository cloudera.repos
    (https://repository.cloudera.com/content/groups/cdh-releases-rcs)
    Downloading:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [WARNING] Unable to get resource 'javax.jdo:jdo2-api:pom:2.3-ec'
    from repository cloudera.snapshots.repo
    (https://repository.cloudera.com/content/repositories/snapshots):
    Error transferring file: Server returned HTTP response code: 409
    for URL:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    Downloading:
    https://repository.cloudera.com/content/repositories/releases/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository cdh.releases.repo
    (https://repository.cloudera.com/content/repositories/releases)
    Downloading:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [WARNING] Unable to get resource 'javax.jdo:jdo2-api:pom:2.3-ec'
    from repository cdh.snapshots.repo
    (https://repository.cloudera.com/content/repositories/snapshots):
    Error transferring file: Server returned HTTP response code: 409
    for URL:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    Downloading:
    https://repository.cloudera.com/content/repositories/third-party/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository cloudera.thirdparty.repo
    (https://repository.cloudera.com/content/repositories/third-party)
    Downloading:
    http://www.datanucleus.org/downloads/maven2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository datanucleus (http://www.datanucleus.org/downloads/maven2)
    Downloading:
    http://download.java.net/maven/2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository java.net <http://java.net> repository
    (http://download.java.net/maven/2)
    Downloading:
    https://repository.cloudera.com/content/repositories/third-party/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository cdh.thirdparty.repo
    (https://repository.cloudera.com/content/repositories/third-party)
    Downloading:
    http://repo1.maven.org/maven2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:pom:2.3-ec' in
    repository central (http://repo1.maven.org/maven2)
    [INFO] snapshot org.apache.hive:hive-exec:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot org.apache.hive:hive-exec:0.8.1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-test:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cloudera.snapshots.repo
    [INFO] snapshot
    org.apache.hadoop:hadoop-test:2.0.0-mr1-cdh4.0.0-SNAPSHOT:
    checking for updates from cdh.snapshots.repo
    Downloading:
    https://repository.cloudera.com/content/groups/cdh-releases-rcs/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:jar:2.3-ec' in
    repository cloudera.repos
    (https://repository.cloudera.com/content/groups/cdh-releases-rcs)
    Downloading:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    [WARNING] Unable to get resource 'javax.jdo:jdo2-api:jar:2.3-ec'
    from repository cloudera.snapshots.repo
    (https://repository.cloudera.com/content/repositories/snapshots):
    Error transferring file: Server returned HTTP response code: 409
    for URL:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    Downloading:
    https://repository.cloudera.com/content/repositories/releases/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:jar:2.3-ec' in
    repository cdh.releases.repo
    (https://repository.cloudera.com/content/repositories/releases)
    Downloading:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    [WARNING] Unable to get resource 'javax.jdo:jdo2-api:jar:2.3-ec'
    from repository cdh.snapshots.repo
    (https://repository.cloudera.com/content/repositories/snapshots):
    Error transferring file: Server returned HTTP response code: 409
    for URL:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    Downloading:
    https://repository.cloudera.com/content/repositories/third-party/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    [INFO] Unable to find resource 'javax.jdo:jdo2-api:jar:2.3-ec' in
    repository cloudera.thirdparty.repo
    (https://repository.cloudera.com/content/repositories/third-party)
    Downloading:
    http://www.datanucleus.org/downloads/maven2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
    193K downloaded (jdo2-api-2.3-ec.jar)
    [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for
    javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar - IGNORING
    [INFO] [compiler:compile {execution: default-compile}]
    [WARNING] File encoding has not been set, using platform encoding
    UTF-8, i.e. build is platform dependent!
    [INFO] Compiling 21 source files to
    /home/romain/projects/hue-master/apps/beeswax/java/target/classes
    [INFO] [resources:testResources {execution: default-testResources}]
    [WARNING] Using platform encoding (UTF-8 actually) to copy
    filtered resources, i.e. build is platform dependent!
    [INFO] skip non existing resourceDirectory
    /home/romain/projects/hue-master/apps/beeswax/java/src/test/resources
    [INFO] [compiler:testCompile {execution: default-testCompile}]
    [WARNING] File encoding has not been set, using platform encoding
    UTF-8, i.e. build is platform dependent!
    [INFO] Compiling 2 source files to
    /home/romain/projects/hue-master/apps/beeswax/java/target/test-classes
    [INFO] [surefire:test {execution: default-test}]
    [INFO] Tests are skipped.
    [INFO] [jar:jar {execution: default-jar}]
    [INFO] Building jar:
    /home/romain/projects/hue-master/apps/beeswax/java/target/beeswax-server-2.1.0-SNAPSHOT.jar
    [INFO] [jar:test-jar {execution: test-package}]
    [INFO] Building jar:
    /home/romain/projects/hue-master/apps/beeswax/java/target/beeswax-server-2.1.0-SNAPSHOT-tests.jar
    [INFO] [install:install {execution: default-install}]
    [INFO] Installing
    /home/romain/projects/hue-master/apps/beeswax/java/target/beeswax-server-2.1.0-SNAPSHOT.jar
    to
    /home/romain/.m2/repository/com/cloudera/hue/beeswax-server/2.1.0-SNAPSHOT/beeswax-server-2.1.0-SNAPSHOT.jar
    [INFO] Installing
    /home/romain/projects/hue-master/apps/beeswax/java/target/beeswax-server-2.1.0-SNAPSHOT-tests.jar
    to
    /home/romain/.m2/repository/com/cloudera/hue/beeswax-server/2.1.0-SNAPSHOT/beeswax-server-2.1.0-SNAPSHOT-tests.jar
    [INFO]
    ------------------------------------------------------------------------
    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: 20 seconds
    [INFO] Finished at: Mon Nov 26 13:31:16 PST 2012
    [INFO] Final Memory: 53M/349M
    [INFO]
    ------------------------------------------------------------------------





    On Sat, Nov 24, 2012 at 10:34 AM, Peter Rudenko
    wrote:

    Thanks for fixing, seems to work now. But build fails anyway:

    [ERROR] Failed to execute goal on project beeswax-server:
    Could not resolve dependencies for project
    com.cloudera.hue:beeswax-server:jar:2.1.0-SNAPSHOT: Failed to
    collect dependencies for
    [org.apache.hadoop:hadoop-client:jar:2.0.0-mr1-cdh4.0.0-SNAPSHOT
    (compile),
    org.apache.hive:hive-metastore:jar:0.8.1-cdh4.0.0-SNAPSHOT
    (compile),
    org.apache.hive:hive-exec:jar:0.8.1-cdh4.0.0-SNAPSHOT
    (compile),
    org.apache.hive:hive-common:jar:0.8.1-cdh4.0.0-SNAPSHOT
    (compile), org.apache.thrift:libthrift:jar:0.7.0 (compile),
    org.apache.thrift:libfb303:jar:0.7.0 (compile),
    org.slf4j:slf4j-api:jar:1.6.1 (compile),
    org.slf4j:slf4j-log4j12:jar:1.6.1 (compile),
    junit:junit:jar:4.8.1 (test),
    org.apache.hadoop:hadoop-test:jar:2.0.0-mr1-cdh4.0.0-SNAPSHOT
    (test)]: Failed to read artifact descriptor for
    javax.jdo:jdo2-api:jar:2.3-ec: *Could not transfer artifact
    javax.jdo:jdo2-api:pom:2.3-ec from/to cloudera.snapshots.repo
    (https://repository.cloudera.com/content/repositories/snapshots):
    Failed to transfer file:
    https://repository.cloudera.com/content/repositories/snapshots/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom.
    Return code is: 409, ReasonPhrase:The repository
    'libs-snapshot-local' rejected the artifact
    'libs-snapshot-local:javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom'
    due to its snapshot/release handling policy.. ->*



    On 24.11.12 17:23, Peter Rudenko wrote:
    Hi Romain, sorry for disturb. Is cloudera repository down?
    When i build apps i get next error:

    [ERROR] The build could not read 1 project -> [Help 1]
    [ERROR]
    [ERROR] The project
    com.cloudera.hue:hue-plugins:2.1.0-SNAPSHOT
    (/home/sandbox/hue_src/desktop/libs/hadoop/java/pom.xml) has
    1 error
    [ERROR] Non-resolvable parent POM for
    com.cloudera.hue:hue-parent:2.1.0-SNAPSHOT: Could not
    transfer artifact com.cloudera:parent:pom:1.0-SNAPSHOT
    from/to cloudera.snapshots.repo
    (https://repository.cloudera.com/content/repositories/snapshots):
    Failed to transfer file:
    https://repository.cloudera.com/content/repositories/snapshots/com/cloudera/parent/1.0-SNAPSHOT/parent-1.0-SNAPSHOT.pom.
    Return code is: 502, ReasonPhrase:Proxy Error. and
    'parent.relativePath' points at wrong local POM @
    com.cloudera.hue:hue-parent:2.1.0-SNAPSHOT,
    /home/sandbox/hue_src/maven/pom.xml, line 22, column 11 ->
    [Help 2]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run
    Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug
    logging.
    [ERROR]
    [ERROR] For more information about the errors and possible
    solutions, please read the following articles:
    [ERROR] [Help 1]
    http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
    [ERROR] [Help 2]
    http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException



    On 22.11.12 19:44, Romain Rigaux wrote:
    I just tried and it worked for me (and I can see the class
    https://github.com/cloudera/hue/blob/master/desktop/core/src/desktop/lib/exceptions.py#L91).


    Can you do a 'make clean' then 'make apps' and then try again?

    Romain

    On Thu, Nov 22, 2012 at 2:59 AM, Peter Rudenko
    <petro.rudenko@gmail.com >> wrote:

    Hi, two weeks ago it worked fine, but today i've cloned
    from github new version of hue and get next error when
    running beeswax_install_examples:

    (env)peter@peter:~/demo1/hue$ hue beeswax_install_examples
    Traceback (most recent call last):
    File "/home/peter/demo1/hue/build/env/bin/hue", line
    8, in <module>
    load_entry_point('desktop==2.1.0', 'console_scripts',
    'hue')()
    File
    "/home/peter/demo1/hue/desktop/core/src/desktop/manage_entry.py",
    line 60, in entry
    execute_manager(settings)
    File
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/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
    "/home/peter/demo1/hue/apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py",
    line 49, in <module>
    from beeswax import models
    File
    "/home/peter/demo1/hue/apps/beeswax/src/beeswax/models.py",
    line 30, in <module>
    from desktop.lib.exceptions import PopupException
    File
    "/home/peter/demo1/hue/desktop/core/src/desktop/lib/exceptions.py",
    line 24, in <module>
    import desktop.lib.django_util
    File
    "/home/peter/demo1/hue/desktop/core/src/desktop/lib/django_util.py",
    line 39, in <module>
    import desktop.lib.thrift_util
    File
    "/home/peter/demo1/hue/desktop/core/src/desktop/lib/thrift_util.py",
    line 35, in <module>
    from desktop.lib.exceptions import
    StructuredThriftTransportException
    ImportError: cannot import name
    StructuredThriftTransportException

    If i run from shell "from desktop.lib.exceptions import
    StructuredThriftTransportException" it works fine. Could
    you point me where i'm wrong? Thank you.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouphue-user @
categorieshadoop
postedNov 22, '12 at 10:59a
activeNov 27, '12 at 9:23p
posts5
users3
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase