Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-4833

FIWARE.Question.Tech.Data.BigData-Analysis.Cygnus JAVA_HOME is not set

    Details

      Description

      Created question in FIWARE Q/A platform on 22-04-2015 at 13:04
      Please, ANSWER this question AT http://stackoverflow.com/questions/29796098/cygnus-java-home-is-not-set

      Question:
      Cygnus JAVA_HOME is not set

      Description:
      I installed cygnus and when I hit sudo service cygnus start I get the status OK running.

      But the log file says:

      Warning: JAVA_HOME is not set!
      + exec /usr/bin/java -Xmx20m -Dflume.log.file=cygnus.log -cp '/usr/cygnus/conf:/usr/cygnus/lib/:/usr/cygnus/plugins.d/cygnus/lib/:/usr/cygnus/plugins.d/cygnus/libext/*' -Djava.library.path= es.tid.fiware.fiwareconnectors.cygnus.nodes.CygnusApplication -p 8081 -f /usr/cygnus/conf/agent_1.conf -n cygnusagent
      SLF4J: Class path contains multiple SLF4J bindings.
      SLF4J: Found binding in [jar:file:/usr/cygnus/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: Found binding in [jar:file:/usr/cygnus/plugins.d/cygnus/lib/cygnus-0.7.1-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

      I checked echo $JAVA_HOME and get:

      /usr/lib/jvm/java-1.6.0-openjdk.x86_64

      I also checked java -version and got:

      java version "1.6.0_35"
      OpenJDK Runtime Environment (IcedTea6 1.13.7) (rhel-1.13.7.1.el6_6-x86_64)
      OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)

      So what am I missing here?

      I did all these steps here:

      Installing Cygnus

      Open a terminal and simply configure the FIWARE repository if not yet
      configured and use your applications manager in order to install the
      latest version of Cy gnus (CentOS/RedHat example):

      $ sudo cat > /etc/yum.repos.d/fiware.repo <http://repositories.testbed.fi-ware.eu/repo/rpm/x86_64/
      gpgcheck=0 enabled=1 EOL $ sudo yum install cygnus

      IMPORTANT NOTE:

      Cygnus, as it is based on Apache Flume, needs Java SDK is installed.
      If not yet installed, do it right now:

      $ sudo yum install java-1.6.0-openjdk-devel

      Remember to export the JAVA_HOME environment variable. In the case you
      have installed Java SDK right now as shown above, this would be as:

      $ export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk.x86_64

      In order to do it permanently, edit /root/.bash_profile (root user) or
      /etc/profile (other users).

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-16 21:05|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-16 21:05|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-17 00:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-17 00:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-17 03:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-17 03:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-17 06:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-17 06:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            frb Francisco Romero
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: