PageRenderTime 12ms CodeModel.GetById 7ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/release-0.0.0-rc0/hive/external/metastore/scripts/start_meta_store_thrift_server.sh

#
Shell | 41 lines | 14 code | 8 blank | 19 comment | 4 complexity | bf4ab7876e18ea38de1c1aacfd699357 MD5 | raw file
 1#!/usr/bin/env bash
 2
 3# Licensed to the Apache Software Foundation (ASF) under one or more
 4# contributor license agreements.  See the NOTICE file distributed with
 5# this work for additional information regarding copyright ownership.
 6# The ASF licenses this file to You under the Apache License, Version 2.0
 7# (the "License"); you may not use this file except in compliance with
 8# the License.  You may obtain a copy of the License at
 9#
10#     http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17
18
19CLASSPATH=
20
21# the dist lib libraries
22for f in /usr/local/fbprojects/hive.metastore/lib/*.jar ; do
23  CLASSPATH=$CLASSPATH:$f
24done
25
26# the hadoop libraries
27for f in /mnt/hive/stable/cluster/*.jar ; do
28  CLASSPATH=$CLASSPATH:$f
29done
30
31# the apache libraries
32for f in /mnt/hive/stable/cluster/lib/*.jar ; do
33  CLASSPATH=$CLASSPATH:$f
34done
35
36# for now, the fb_hive libraries
37for f in /mnt/hive/stable/lib/hive/*.jar ; do
38  CLASSPATH=$CLASSPATH:$f
39done
40
41/usr/local/bin/java -Dcom.sun.management.jmxremote -Djava.library.path=/mnt/hive/production/cluster/lib/native/Linux-amd64-64/ -cp $CLASSPATH com.facebook.metastore.MetaStoreServer