Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Please apply this patch, this is why log4j exists. Rerunning at non-deterministic command twice to catch error message is extremely dangerous.

      diff --git a/bin/kafka-run-class.sh b/bin/kafka-run-class.sh
      index eb6ff1b..2f2d8b5 100755
      — a/bin/kafka-run-class.sh
      +++ b/bin/kafka-run-class.sh
      @@ -102,19 +102,3 @@ if [ "$1" = "daemon" ] && [ -z "$KAFKA_GC_LOG_OPTS"] ; then
      fi

      $JAVA $KAFKA_HEAP_OPTS $KAFKA_JVM_PERFORMANCE_OPTS $KAFKA_GC_LOG_OPTS $KAFKA_JMX_OPTS $KAFKA_LOG4J_OPTS -cp $CLASSPATH $KAFKA_OPTS "$@"
      -
      -exitval=$?
      -
      -if [ $exitval -eq "1" ] ; then

      • $JAVA $KAFKA_HEAP_OPTS $KAFKA_JVM_PERFORMANCE_OPTS $KAFKA_GC_LOG_OPTS $KAFKA_JMX_OPTS $KAFKA_LOG4J_OPTS -cp $CLASSPATH $KAFKA_OPTS "$@" >& exception.txt
      • exception=`cat exception.txt`
      • noBuildMessage='Please build the project using sbt. Documentation is available at http://kafka.apache.org/'
      • pattern="(Could not find or load main class)|(java\.lang\.NoClassDefFoundError)"
      • match=`echo $exception | grep -E "$pattern"`
      • if [[ -n "$match" ]]; then
      • echo $noBuildMessage
      • fi
      • rm exception.txt
        -fi
        -
        -

        Activity

        Francois Saint-Jacques created issue -
        Jay Kreps made changes -
        Field Original Value New Value
        Attachment KAFKA-1081-v1.patch [ 12608092 ]
        Jay Kreps made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Francois Saint-Jacques
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development