Review Board 1.7.22


SQOOP-631: Sqoop2 client is not working on Mac OS X

Review Request #7641 - Created Oct. 17, 2012 and submitted

Jarek Cecho
SQOOP-631
Reviewers
Sqoop
sqoop-sqoop2
I've substituted the "readlink -f code" with variables, not that nice solution thought.
Tested on Mac OS X (10.8.2) and Ubuntu (12.04).

Diff revision 1 (Latest)

  1. dist/src/main/bin/sqoop.sh: Loading...
dist/src/main/bin/sqoop.sh
Revision dd2e3231c380b954c1a41087ddc8aaa21c981ef4 New Change
[20] 48 lines
[+20]
49
    ;;
49
    ;;
50

    
   
50

   
51
  client)
51
  client)
52
    # Build class path with full path to each library
52
    # Build class path with full path to each library
53
    for f in $CLIENT_LIB/*.jar; do
53
    for f in $CLIENT_LIB/*.jar; do
54
      CLASSPATH=${CLASSPATH}:`readlink -f $f`;
54
      CLASSPATH="${CLASSPATH}:$CUR_DIR/$f"
55
    done
55
    done
56

    
   
56

   
57
    # We need to change current directory back to original as optional user side script
57
    # We need to change current directory back to original as optional user side script
58
    # might be specified with relative path.
58
    # might be specified with relative path.
59
    cd ${OLD_DIR}
59
    cd ${OLD_DIR}
[+20] [20] 9 lines
  1. dist/src/main/bin/sqoop.sh: Loading...