Skip to content

Commit

Permalink
Run table service as a bookkeeper lifecycle component in bookie server
Browse files Browse the repository at this point in the history
  • Loading branch information
XuQianJin-Stars committed Jul 19, 2023
1 parent e184d7d commit 09f6309
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ public class ServerConfiguration extends AbstractConfiguration<ServerConfigurati
protected static final String HTTP_SERVER_TRUST_STORE_PASSWORD = "httpServerTrustStorePassword";

// Table Service parameters
protected static final String TABLE_SERVICE_ENABLED = "tableServiceEnabled";
protected static final String TABLE_NUM_BOOKIES = "tableNumBookies";
protected static final String TABLE_ZK_PORT = "tableZKPort";
protected static final String TABLE_START_BOOKIE_AND_START_PROVIDER = "startBookieAndStartProvider";
Expand Down Expand Up @@ -4111,26 +4110,6 @@ public ServerConfiguration setLedgerMetadataRocksdbConf(String ledgerMetadataRoc
return this;
}

/**
* Get whether to start the table service or not.
*
* @return true - if table service should start
*/
public boolean isTableServiceEnabled() {
return getBoolean(TABLE_SERVICE_ENABLED, false);
}

/**
* Set whether to start the table service or not.
*
* @param enabled - true if we should start table service
* @return ServerConfiguration
*/
public ServerConfiguration setTableServiceEnabled(boolean enabled) {
setProperty(TABLE_SERVICE_ENABLED, enabled);
return this;
}

/**
* Returns the number of bookies to run in this cluster.
*
Expand Down
3 changes: 0 additions & 3 deletions conf/bk_server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1065,9 +1065,6 @@ zkEnableSecurity=false
##################################################################
##################################################################

# The flag enables/disables starting the table service. Default value is 'false'.
tableServiceEnabled=false

### Grpc Server ###

# the grpc server port to listen on. default is 4181
Expand Down
3 changes: 0 additions & 3 deletions conf/standalone.conf
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ ledgerDirectories=/tmp/bk-data
##################################################################
##################################################################

# The flag enables/disables starting the table service. Default value is 'false'.
tableServiceEnabled=true

### Grpc Server ###

# the grpc server port to listen on. default is 4181
Expand Down

0 comments on commit 09f6309

Please sign in to comment.