FLUME-152: Fixing bin/flume script bash 3.0

Review Request #739 — Created Aug. 26, 2010 and discarded

thinker0
old-flume
FLUME-152
flume
bash

'+=' Operation not work. bash-3.0

bash-3.0-21.el4_8.2
RHEL4 not working


[ bin]$ ./flume
usage: flume command [args...]
commands include: 
  dump            Takes a specified source and dumps to console
  node            Start a Flume node/agent (with watchdog)
  master          Start a Flume Master server (with watchdog)
  version         Dump flume build version information 
  node_nowatch    Start a flume node/agent (no watchdog)
  master_nowatch  Start a Flume Master server (no watchdog)
  class <class>   Run specified fully qualified class using Flume environment (no watchdog)
                   ex: flume com.cloudera.flume.agent.FlumeNode 
  classpath       Dump the classpath used by the java executables
  shell           Start the flume shell
  killmaster      Kill a running master
[ bin]$ ./flume dump console
./flume: line 93: JOPTS+=-Dflume.log.file=flume.log : command not found
./flume: line 94: JOPTS+=-Dflume.root.logger=INFO,console : command not found
./flume: line 95: JOPTS+=-Dzookeeper.root.logger=ERROR,console : command not found
./flume: line 96: JOPTS+=-Dwatchdog.root.logger=INFO,console : command not found
./flume: line 146: JOPTS+=-Djava.library.path=./lib : No such file or directory
./flume: line 151: CLASSPATH+=:/lib/tools.jar: No such file or directory
./flume: line 72: CLASSPATH+=:/usr/lib/zookeeper/zookeeper-3.3.1+7.jar: No such file or directory
./flume: line 164: CLASSPATH+=:./build/classes: No such file or directory
HADOOP_HOME is unset, hadoop jars may not be added to classpath
Exception in thread "main" java.lang.NoClassDefFoundError: com/cloudera/flume/agent/FlumeNode
Caused by: java.lang.ClassNotFoundException: com.cloudera.flume.agent.FlumeNode
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: com.cloudera.flume.agent.FlumeNode.  Program will exit.
[bin]$ rpm -qa | grep bash
bash-3.0-21.el4_8.2
thinker0
Review request changed

Summary:

-FLUME-152: Fixing bin/flume script to work when run from the bin directory.
+FLUME-152: Fixing bin/flume script bash 3.0
jon
  1. hey thinker0, 
    
    lgtm! However, I reviewed your patch and you are actually solving a different problem than the one diagnosed in this JIRA's earlier comments!   Could you create a new jira (so you can get credit!) and upload your patch to that JIRA?  I can change and take care of the rest of the stuff in review board board.
    
    As described here, this problem is a dupe of FLUME-152 (I reviewed a different patch earlier today and committed it already).    
    
  2. 
      
Loading...