File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/tx
hugegraph-dist/src/assembly/static/bin
hugegraph-hbase/src/main/java/com/baidu/hugegraph/backend/store/hbase Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 8686import com .baidu .hugegraph .type .define .Action ;
8787import com .baidu .hugegraph .type .define .HugeKeys ;
8888import com .baidu .hugegraph .type .define .IndexType ;
89+ import com .baidu .hugegraph .type .define .SchemaStatus ;
8990import com .baidu .hugegraph .util .CollectionUtil ;
9091import com .baidu .hugegraph .util .E ;
9192import com .baidu .hugegraph .util .InsertionOrderUtil ;
Original file line number Diff line number Diff line change @@ -22,15 +22,17 @@ ensure_path_writable $PLUGINS
2222
2323if [ -n " $JAVA_HOME " ]; then
2424 JAVA=" $JAVA_HOME " /bin/java
25+ EXT=" $JAVA_HOME /jre/lib/ext:$LIB :$PLUGINS "
2526else
2627 JAVA=java
28+ EXT=" $LIB :$PLUGINS "
2729fi
2830
2931cd $TOP
3032
3133echo " Initializing HugeGraph Store..."
3234
33- $JAVA -cp $LIB /hugegraph-dist-* .jar -Djava.ext.dirs=$LIB : $PLUGINS \
35+ $JAVA -cp $LIB /hugegraph-dist-* .jar -Djava.ext.dirs=$EXT \
3436 com.baidu.hugegraph.cmd.InitStore \
3537 " $CONF " /gremlin-server.yaml " $CONF " /rest-server.properties
3638
Original file line number Diff line number Diff line change @@ -114,6 +114,14 @@ public static synchronized HbaseOptions instance() {
114114 "/etc/krb5.conf"
115115 );
116116
117+ public static final ConfigOption <String > HBASE_HBASE_SITE =
118+ new ConfigOption <>(
119+ "hbase.hbase_site" ,
120+ "The HBase's configuration file" ,
121+ null ,
122+ "/etc/hbase/conf/hbase-site.xml"
123+ );
124+
117125 public static final ConfigOption <String > HBASE_KERBEROS_PRINCIPAL =
118126 new ConfigOption <>(
119127 "hbase.kerberos_principal" ,
Original file line number Diff line number Diff line change 3333import java .util .concurrent .Future ;
3434
3535import org .apache .hadoop .conf .Configuration ;
36+ import org .apache .hadoop .fs .Path ;
3637import org .apache .hadoop .hbase .Cell ;
3738import org .apache .hadoop .hbase .CellScanner ;
3839import org .apache .hadoop .hbase .CellUtil ;
@@ -135,6 +136,9 @@ public synchronized void open() throws IOException {
135136 hConfig .setInt ("hbase.hconnection.threads.max" ,
136137 config .get (HbaseOptions .HBASE_THREADS_MAX ));
137138
139+ String hbaseSite = config .get (HbaseOptions .HBASE_HBASE_SITE );
140+ hConfig .addResource (new Path (hbaseSite ));
141+
138142 if (isEnableKerberos ) {
139143 String krb5Conf = config .get (HbaseOptions .HBASE_KRB5_CONF );
140144 System .setProperty ("java.security.krb5.conf" , krb5Conf );
You can’t perform that action at this time.
0 commit comments