diff --git a/source/dnode/mgmt/main/exe/dndMain.c b/source/dnode/mgmt/main/exe/dndMain.c index 53e27d187d3f98de5ca6e0596cb1de6226586acd..334d52d52bf60c9645c8e1cacad016ef74f52307 100644 --- a/source/dnode/mgmt/main/exe/dndMain.c +++ b/source/dnode/mgmt/main/exe/dndMain.c @@ -22,6 +22,7 @@ static struct { bool generateGrant; bool printAuth; bool printVersion; + int8_t node; char envFile[PATH_MAX]; char apolloUrl[PATH_MAX]; SDnode *pDnode; @@ -62,6 +63,8 @@ static int32_t dndParseArgs(int32_t argc, char const *argv[]) { tstrncpy(global.envFile, argv[++i], PATH_MAX); } else if (strcmp(argv[i], "-k") == 0) { global.generateGrant = true; + } else if (strcmp(argv[i], "-n") == 0) { + global.node = atoi(argv[++i]); } else if (strcmp(argv[i], "-C") == 0) { global.dumpConfig = true; } else if (strcmp(argv[i], "-V") == 0) { @@ -75,6 +78,7 @@ static int32_t dndParseArgs(int32_t argc, char const *argv[]) { static void dndGenerateGrant() { // grantParseParameter(); + printf("this feature is not implemented yet\n"); } static void dndPrintVersion() { @@ -116,8 +120,7 @@ static int32_t dndRunDnode() { } SDnodeOpt option = dndGetOpt(); - - SDnode *pDnode = dndCreate(&option); + SDnode *pDnode = dndCreate(&option); if (pDnode == NULL) { dError("failed to to create dnode object since %s", terrstr()); return -1; @@ -126,9 +129,9 @@ static int32_t dndRunDnode() { dndSetSignalHandle(); } - dInfo("start the TDengine service"); + dInfo("start the service"); int32_t code = dndRun(pDnode); - dInfo("start shutting down the TDengine service"); + dInfo("start shutting down the service"); global.pDnode = NULL; dndClose(pDnode); diff --git a/tests/script/sh/deploy.sh b/tests/script/sh/deploy.sh index ea1ad65a5bd1eb24c2db06264dcbaa8fa3fb2abc..1bbfccf98946c9f16cc06e285255f92eeff504bf 100755 --- a/tests/script/sh/deploy.sh +++ b/tests/script/sh/deploy.sh @@ -124,7 +124,7 @@ echo "firstEp ${HOSTNAME}:7100" >> $TAOS_CFG echo "secondEp ${HOSTNAME}:7200" >> $TAOS_CFG echo "fqdn ${HOSTNAME}" >> $TAOS_CFG echo "serverPort ${NODE}" >> $TAOS_CFG -echo "supportVnodes 128" >> $TAOS_CFG +echo "supportVnodes 128" >> $TAOS_CFG echo "dataDir $DATA_DIR" >> $TAOS_CFG echo "logDir $LOG_DIR" >> $TAOS_CFG echo "debugFlag 0" >> $TAOS_CFG @@ -133,20 +133,17 @@ echo "dDebugFlag 143" >> $TAOS_CFG echo "vDebugFlag 143" >> $TAOS_CFG echo "tsdbDebugFlag 143" >> $TAOS_CFG echo "cDebugFlag 143" >> $TAOS_CFG -echo "jnidebugFlag 143" >> $TAOS_CFG -echo "qdebugFlag 143" >> $TAOS_CFG +echo "jniDebugFlag 143" >> $TAOS_CFG +echo "qDebugFlag 143" >> $TAOS_CFG echo "rpcDebugFlag 143" >> $TAOS_CFG echo "tmrDebugFlag 131" >> $TAOS_CFG -echo "udebugFlag 143" >> $TAOS_CFG -echo "sdebugFlag 143" >> $TAOS_CFG -echo "wdebugFlag 143" >> $TAOS_CFG -echo "slaveQuery 0" >> $TAOS_CFG -echo "numOfThreadsPerCore 2.0" >> $TAOS_CFG -echo "defaultPass taosdata" >> $TAOS_CFG +echo "uDebugFlag 143" >> $TAOS_CFG +echo "sDebugFlag 143" >> $TAOS_CFG +echo "wDebugFlag 143" >> $TAOS_CFG echo "numOfLogLines 20000000" >> $TAOS_CFG echo "statusInterval 1" >> $TAOS_CFG echo "asyncLog 0" >> $TAOS_CFG echo "locale en_US.UTF-8" >> $TAOS_CFG -echo "fsync 0" >> $TAOS_CFG echo "telemetryReporting 0" >> $TAOS_CFG +echo "multiProcess 0" >> $TAOS_CFG echo " " >> $TAOS_CFG