forked from bd-group/dservice
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmstool.sh
More file actions
executable file
·29 lines (24 loc) · 804 Bytes
/
mstool.sh
File metadata and controls
executable file
·29 lines (24 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
if [ "x$DSHOME" == "x" ]; then
DSHOME=`pwd`/..
echo "Please set env DSHOME as top level workspace, default '$DSHOME'."
fi
if [ "x$MSHOME" == "x" ]; then
MSHOME=$DSHOME/hive-0.10.0/src/build/dist/lib
echo "Please set env MSHOME as metastore dist lib, default '$MSHOME'."
fi
if [ "x$LCHOME" == "x" ]; then
LCHOME=$DSHOME/dservice/lib
echo "Please set env LCHOME as lucene home, default as '$LCHOME'."
fi
if [ "x$HADOOP_HOME" == "x" ]; then
HADOOP_HOME=$DSHOME/hadoop-1.0.3
echo "Please set env HADOOP_HOME as hadoop home, default as '$HADOOP_HOME'."
fi
cd build
for f in $MSHOME/*.jar; do
LIBS=$LIBS:$f;
done
for f in $HADOOP_HOME/*.jar; do
LIBS=$LIBS:$f; done
LD_LIBRARY_PATH=. CLASSPATH=$CLASSPATH:$LIBS java iie/metastore/MetaStoreClient "$@"