From ae9ce81453f05df96dab919b92149b5007be9066 Mon Sep 17 00:00:00 2001 From: imay Date: Tue, 30 Oct 2018 16:29:06 +0800 Subject: [PATCH] Changed: change build.sh to use environment variable to get thirdparty's path, and change PALO_HOME to DORIS_HOME --- be/CMakeLists.txt | 48 ++++++------- be/src/codegen/CMakeLists.txt | 8 +-- be/src/codegen/gen_ir_descriptions.py | 2 +- be/src/common/config.h | 16 ++--- be/src/service/CMakeLists.txt | 2 +- be/src/service/palo_main.cpp | 6 +- be/src/util/path_builder.cpp | 2 +- be/src/util/path_builder.h | 6 +- be/test/agent/agent_server_test.cpp | 2 +- be/test/agent/file_downloader_test.cpp | 2 +- be/test/agent/heartbeat_server_test.cpp | 4 +- be/test/agent/pusher_test.cpp | 2 +- be/test/agent/task_worker_pool_test.cpp | 2 +- be/test/agent/utils_test.cpp | 2 +- be/test/common/resource_tls_test.cpp | 2 +- be/test/exec/broker_reader_test.cpp | 2 +- be/test/exec/broker_scan_node_test.cpp | 2 +- be/test/exec/broker_scanner_test.cpp | 2 +- be/test/exec/csv_scan_bench_test.cpp | 2 +- be/test/exec/csv_scan_node_test.cpp | 2 +- be/test/exec/csv_scanner_test.cpp | 2 +- be/test/exec/hash_table_test.cpp | 2 +- be/test/exec/mysql_scan_node_test.cpp | 2 +- be/test/exec/mysql_scanner_test.cpp | 2 +- be/test/exec/new_olap_scan_node_test.cpp | 2 +- be/test/exec/olap_common_test.cpp | 2 +- be/test/exec/olap_scan_node_test.cpp | 2 +- be/test/exec/olap_scanner_test.cpp | 2 +- be/test/exec/partitioned_hash_table_test.cpp | 2 +- .../exec/plain_text_line_reader_bzip_test.cpp | 2 +- .../exec/plain_text_line_reader_gzip_test.cpp | 2 +- .../plain_text_line_reader_lz4frame_test.cpp | 2 +- .../exec/plain_text_line_reader_lzop_test.cpp | 2 +- ...ain_text_line_reader_uncompressed_test.cpp | 2 +- be/test/exec/schema_scan_node_test.cpp | 2 +- .../schema_authors_scanner_test.cpp | 2 +- .../schema_charsets_scanner_test.cpp | 2 +- .../schema_collations_scanner_test.cpp | 2 +- .../schema_columns_scanner_test.cpp | 2 +- .../schema_create_table_scanner_test.cpp | 2 +- .../schema_engines_scanner_test.cpp | 2 +- .../schema_open_tables_scanner_test.cpp | 2 +- .../schema_schemata_scanner_test.cpp | 2 +- .../schema_table_names_scanner_test.cpp | 2 +- .../schema_tables_scanner_test.cpp | 2 +- .../schema_variables_scanner_test.cpp | 2 +- be/test/exec/schema_scanner_test.cpp | 2 +- be/test/exec/set_executor_test.cpp | 2 +- be/test/exprs/hybird_set_test.cpp | 2 +- be/test/exprs/in_predicate_test.cpp | 2 +- be/test/exprs/json_function_test.cpp | 2 +- be/test/olap/bit_field_test.cpp | 2 +- be/test/olap/bloom_filter_index_test.cpp | 2 +- be/test/olap/bloom_filter_test.cpp | 2 +- be/test/olap/byte_buffer_test.cpp | 2 +- be/test/olap/column_reader_test.cpp | 2 +- be/test/olap/command_executor_test.cpp | 4 +- be/test/olap/comparison_predicate_test.cpp | 2 +- be/test/olap/delete_handler_test.cpp | 6 +- be/test/olap/file_helper_test.cpp | 2 +- be/test/olap/file_utils_test.cpp | 2 +- be/test/olap/in_list_predicate_test.cpp | 2 +- be/test/olap/lru_cache_test.cpp | 2 +- be/test/olap/null_predicate_test.cpp | 2 +- be/test/olap/olap_reader_test.cpp | 4 +- be/test/olap/row_block_test.cpp | 2 +- be/test/olap/row_cursor_test.cpp | 2 +- be/test/olap/run_length_byte_test.cpp | 2 +- be/test/olap/run_length_integer_test.cpp | 2 +- be/test/olap/stream_index_test.cpp | 2 +- be/test/olap/vectorized_olap_reader_test.cpp | 4 +- be/test/runtime/buffer_control_block_test.cpp | 2 +- be/test/runtime/buffered_block_mgr2_test.cpp | 2 +- .../runtime/buffered_tuple_stream2_test.cpp | 2 +- be/test/runtime/data_spliter_test.cpp | 2 +- be/test/runtime/data_stream_test.cpp | 2 +- be/test/runtime/datetime_value_test.cpp | 2 +- be/test/runtime/decimal_value_test.cpp | 2 +- be/test/runtime/disk_io_mgr_test.cpp | 2 +- be/test/runtime/dpp_sink_test.cpp | 2 +- be/test/runtime/dpp_writer_test.cpp | 2 +- be/test/runtime/etl_job_mgr_test.cpp | 2 +- be/test/runtime/export_task_mgr_test.cpp | 2 +- be/test/runtime/free_list_test.cpp | 2 +- be/test/runtime/large_int_value_test.cpp | 2 +- be/test/runtime/mem_limit_test.cpp | 2 +- be/test/runtime/mem_pool_test.cpp | 2 +- be/test/runtime/mysql_table_writer_test.cpp | 2 +- be/test/runtime/qsorter_test.cpp | 2 +- be/test/runtime/raw_value_test.cpp | 2 +- be/test/runtime/result_buffer_mgr_test.cpp | 2 +- be/test/runtime/result_sink_test.cpp | 2 +- be/test/runtime/result_writer_test.cpp | 2 +- be/test/runtime/snapshot_loader_test.cpp | 2 +- be/test/runtime/string_buffer_test.cpp | 2 +- be/test/runtime/string_value_test.cpp | 2 +- be/test/runtime/thread_resource_mgr_test.cpp | 2 +- be/test/runtime/tmp_file_mgr_test.cpp | 2 +- be/test/udf/uda_test.cpp | 2 +- be/test/udf/udf_test.cpp | 2 +- be/test/util/bit_util_test.cpp | 2 +- be/test/util/cidr_test.cpp | 2 +- be/test/util/count_down_latch_test.cpp | 2 +- be/test/util/decompress_test.cpp | 2 +- be/test/util/filesystem_util_test.cpp | 2 +- be/test/util/internal_queue_test.cpp | 2 +- be/test/util/lru_cache_util_test.cpp | 2 +- be/test/util/palo_metrics_test.cpp | 2 +- be/test/util/path_trie_test.cpp | 2 +- be/test/util/perf_counters_test.cpp | 2 +- be/test/util/runtime_profile_test.cpp | 2 +- be/test/util/string_parser_test.cpp | 2 +- be/test/util/system_metrics_test.cpp | 2 +- be/test/util/thread_pool_test.cpp | 2 +- be/test/util/url_coding_test.cpp | 2 +- bin/start_be.sh | 16 ++--- bin/start_fe.sh | 18 ++--- bin/stop_be.sh | 4 +- bin/stop_fe.sh | 4 +- build.sh | 67 ++++++++++--------- conf/be.conf | 2 +- conf/fe.conf | 8 +-- fe/pom.xml | 14 ++-- fe/src/main/java/com/baidu/palo/PaloFe.java | 4 +- .../com/baidu/palo/backup/CommandBuilder.java | 4 +- .../java/com/baidu/palo/common/Config.java | 8 +-- .../http/action/StaticResourceAction.java | 2 +- .../com/baidu/palo/load/DppScheduler.java | 8 +-- .../com/baidu/palo/load/DppSchedulerTest.java | 2 +- gensrc/proto/Makefile | 2 +- gensrc/script/gen_build_version.sh | 20 +++--- gensrc/thrift/Makefile | 2 +- thirdparty/build-thirdparty.sh | 4 +- thirdparty/download-thirdparty.sh | 2 +- 134 files changed, 256 insertions(+), 251 deletions(-) diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt index 768ddd1f6a..cb3705b06e 100644 --- a/be/CMakeLists.txt +++ b/be/CMakeLists.txt @@ -16,15 +16,15 @@ cmake_minimum_required(VERSION 2.8.10) # set CMAKE_C_COMPILER, this must set before project command -if (DEFINED ENV{PALO_GCC_HOME}) - set(CMAKE_C_COMPILER "$ENV{PALO_GCC_HOME}/bin/gcc") - set(CMAKE_CXX_COMPILER "$ENV{PALO_GCC_HOME}/bin/g++") - set(GCC_HOME $ENV{PALO_GCC_HOME}) +if (DEFINED ENV{DORIS_GCC_HOME}) + set(CMAKE_C_COMPILER "$ENV{DORIS_GCC_HOME}/bin/gcc") + set(CMAKE_CXX_COMPILER "$ENV{DORIS_GCC_HOME}/bin/g++") + set(GCC_HOME $ENV{DORIS_GCC_HOME}) else() set(GCC_HOME "/usr") endif() -project(palo CXX C) +project(doris CXX C) # set CMAKE_BUILD_TYPE if (DEFINED ENV{BUILD_TYPE}) @@ -39,17 +39,17 @@ message(STATUS "Build type is ${CMAKE_BUILD_TYPE}") # Set dirs set(BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}") -set(ENV{PALO_HOME} "${BASE_DIR}/../") +set(ENV{DORIS_HOME} "${BASE_DIR}/../") set(BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}") -set(THIRDPARTY_DIR "${BASE_DIR}/../thirdparty/installed/") +set(THIRDPARTY_DIR "$ENV{DORIS_THIRDPARTY}/installed/") set(GENSRC_DIR "${BASE_DIR}/../gensrc/build/") set(SRC_DIR "${BASE_DIR}/src/") set(TEST_DIR "${CMAKE_SOURCE_DIR}/test/") set(OUTPUT_DIR "${BASE_DIR}/output") # LLVM -if (DEFINED ENV{PALO_LLVM_HOME}) - set(LLVM_HOME "$ENV{PALO_LLVM_HOME}") +if (DEFINED ENV{DORIS_LLVM_HOME}) + set(LLVM_HOME "$ENV{DORIS_LLVM_HOME}") else() set(LLVM_HOME "${THIRDPARTY_DIR}/llvm") endif() @@ -430,8 +430,8 @@ include_directories( set(WL_START_GROUP "-Wl,--start-group") set(WL_END_GROUP "-Wl,--end-group") -# Set Palo libraries -set(PALO_LINK_LIBS +# Set doris libraries +set(DORIS_LINK_LIBS ${WL_START_GROUP} Agent CodeGen @@ -451,7 +451,7 @@ set(PALO_LINK_LIBS ) # Set thirdparty libraries -set(PALO_DEPENDENCIES +set(DORIS_DEPENDENCIES lzo snappy ${Boost_LIBRARIES} @@ -477,41 +477,41 @@ set(PALO_DEPENDENCIES leveldb ) -# Add all external dependencies. They should come after the palo libs. +# Add all external dependencies. They should come after the doris libs. # static link gcc's lib -set(PALO_LINK_LIBS ${PALO_LINK_LIBS} - ${PALO_DEPENDENCIES} +set(DORIS_LINK_LIBS ${DORIS_LINK_LIBS} + ${DORIS_DEPENDENCIES} -static-libstdc++ -static-libgcc ) if ("${CMAKE_BUILD_TYPE}" STREQUAL "BCC") - set(PALO_LINK_LIBS ${PALO_LINK_LIBS} + set(DORIS_LINK_LIBS ${DORIS_LINK_LIBS} -Wl,--dynamic-linker=/lib64/ld-linux-x86-64.so.2 ) endif() # Add sanitize static link flags or tcmalloc if ("${CMAKE_BUILD_TYPE}" STREQUAL "DEBUG" OR "${CMAKE_BUILD_TYPE}" STREQUAL "RELEASE" OR "${CMAKE_BUILD_TYPE}" STREQUAL "BCC") - set(PALO_LINK_LIBS ${PALO_LINK_LIBS} tcmalloc) + set(DORIS_LINK_LIBS ${DORIS_LINK_LIBS} tcmalloc) elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "ASAN") - set(PALO_LINK_LIBS ${PALO_LINK_LIBS} -static-libasan) + set(DORIS_LINK_LIBS ${DORIS_LINK_LIBS} -static-libasan) elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "LSAN") - set(PALO_LINK_LIBS ${PALO_LINK_LIBS} -static-liblsan) + set(DORIS_LINK_LIBS ${DORIS_LINK_LIBS} -static-liblsan) elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "UBSAN") - set(PALO_LINK_LIBS ${PALO_LINK_LIBS} -static-libubsan tcmalloc) + set(DORIS_LINK_LIBS ${DORIS_LINK_LIBS} -static-libubsan tcmalloc) elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "TSAN") - set(PALO_LINK_LIBS ${PALO_LINK_LIBS} -static-libtsan) + set(DORIS_LINK_LIBS ${DORIS_LINK_LIBS} -static-libtsan) else() message(FATAL_ERROR "Unknown build type: ${CMAKE_BUILD_TYPE}") endif() -set(PALO_LINK_LIBS ${PALO_LINK_LIBS} - -lrt -lbfd -liberty -lc -lm -ldl -pthread -lz +set(DORIS_LINK_LIBS ${DORIS_LINK_LIBS} + -lrt -lbfd -liberty -lc -lm -ldl -pthread ) # Set libraries for test -set (TEST_LINK_LIBS ${PALO_LINK_LIBS} +set (TEST_LINK_LIBS ${DORIS_LINK_LIBS} ${WL_START_GROUP} gmock gtest diff --git a/be/src/codegen/CMakeLists.txt b/be/src/codegen/CMakeLists.txt index dd839919c2..d69e628c89 100644 --- a/be/src/codegen/CMakeLists.txt +++ b/be/src/codegen/CMakeLists.txt @@ -88,18 +88,18 @@ add_custom_target(compile_to_ir_no_sse DEPENDS ${IR_NO_SSE_OUTPUT_FILE}) # Convert LLVM bytecode to C array. add_custom_command( OUTPUT ${IR_SSE_C_FILE} - COMMAND $ENV{PALO_HOME}/gensrc/script/file2array.sh -n -v palo_sse_llvm_ir ${IR_SSE_OUTPUT_FILE} > ${IR_SSE_TMP_C_FILE} + COMMAND $ENV{DORIS_HOME}/gensrc/script/file2array.sh -n -v palo_sse_llvm_ir ${IR_SSE_OUTPUT_FILE} > ${IR_SSE_TMP_C_FILE} COMMAND mv ${IR_SSE_TMP_C_FILE} ${IR_SSE_C_FILE} - DEPENDS $ENV{PALO_HOME}/gensrc/script/file2array.sh + DEPENDS $ENV{DORIS_HOME}/gensrc/script/file2array.sh DEPENDS ${IR_SSE_OUTPUT_FILE} ) # Convert LLVM bytecode to C array. add_custom_command( OUTPUT ${IR_NO_SSE_C_FILE} - COMMAND $ENV{PALO_HOME}/gensrc/script/file2array.sh -n -v palo_no_sse_llvm_ir ${IR_NO_SSE_OUTPUT_FILE} > ${IR_NO_SSE_TMP_C_FILE} + COMMAND $ENV{DORIS_HOME}/gensrc/script/file2array.sh -n -v palo_no_sse_llvm_ir ${IR_NO_SSE_OUTPUT_FILE} > ${IR_NO_SSE_TMP_C_FILE} COMMAND mv ${IR_NO_SSE_TMP_C_FILE} ${IR_NO_SSE_C_FILE} - DEPENDS $ENV{PALO_HOME}/gensrc/script/file2array.sh + DEPENDS $ENV{DORIS_HOME}/gensrc/script/file2array.sh DEPENDS ${IR_NO_SSE_OUTPUT_FILE} ) diff --git a/be/src/codegen/gen_ir_descriptions.py b/be/src/codegen/gen_ir_descriptions.py index bae420095c..7a201c8809 100755 --- a/be/src/codegen/gen_ir_descriptions.py +++ b/be/src/codegen/gen_ir_descriptions.py @@ -170,7 +170,7 @@ names_epilogue = '\ \n\ #endif\n' -BE_PATH = os.environ['PALO_HOME'] + "/gensrc/build/palo_ir/" +BE_PATH = os.environ['DORIS_HOME'] + "/gensrc/build/palo_ir/" if not os.path.exists(BE_PATH): os.makedirs(BE_PATH) diff --git a/be/src/common/config.h b/be/src/common/config.h index caf7bfb2f9..ffe877cad4 100644 --- a/be/src/common/config.h +++ b/be/src/common/config.h @@ -112,12 +112,12 @@ namespace config { // sleep time for five seconds CONF_Int32(sleep_five_seconds, "5"); // trans file tools dir - CONF_String(trans_file_tool_path, "${PALO_HOME}/tools/trans_file_tool/trans_files.sh"); + CONF_String(trans_file_tool_path, "${DORIS_HOME}/tools/trans_file_tool/trans_files.sh"); // agent tmp dir - CONF_String(agent_tmp_dir, "${PALO_HOME}/tmp"); + CONF_String(agent_tmp_dir, "${DORIS_HOME}/tmp"); // log dir - CONF_String(sys_log_dir, "${PALO_HOME}/log"); + CONF_String(sys_log_dir, "${DORIS_HOME}/log"); // INFO, WARNING, ERROR, FATAL CONF_String(sys_log_level, "INFO"); // TIME-DAY, TIME-HOUR, SIZE-MB-nnn @@ -130,7 +130,7 @@ namespace config { CONF_String(log_buffer_level, ""); // Pull load task dir - CONF_String(pull_load_task_dir, "${PALO_HOME}/var/pull_load"); + CONF_String(pull_load_task_dir, "${DORIS_HOME}/var/pull_load"); // the maximum number of bytes to display on the debug webserver's log page CONF_Int64(web_log_bytes, "1048576"); @@ -204,7 +204,7 @@ namespace config { CONF_Int32(file_descriptor_cache_clean_interval, "3600"); CONF_Int32(disk_stat_monitor_interval, "5"); CONF_Int32(unused_index_monitor_interval, "30"); - CONF_String(storage_root_path, "${PALO_HOME}/storage"); + CONF_String(storage_root_path, "${DORIS_HOME}/storage"); CONF_Int32(min_percentage_of_error_disk, "50"); CONF_Int32(default_num_rows_per_data_block, "1024"); CONF_Int32(default_num_rows_per_column_file_block, "1024"); @@ -245,7 +245,7 @@ namespace config { CONF_Int32(webserver_port, "8040"); // Interface to start debug webserver on. If blank, webserver binds to 0.0.0.0 CONF_String(webserver_interface, ""); - CONF_String(webserver_doc_root, "${PALO_HOME}"); + CONF_String(webserver_doc_root, "${DORIS_HOME}"); CONF_Int32(webserver_num_workers, "5"); // If true, webserver may serve static files from the webserver_doc_root CONF_Bool(enable_webserver_doc_root, "true"); @@ -265,7 +265,7 @@ namespace config { // Spill to disk when query // Writable scratch directories, splitted by ";" - CONF_String(query_scratch_dirs, "${PALO_HOME}"); + CONF_String(query_scratch_dirs, "${DORIS_HOME}"); // Control the number of disks on the machine. If 0, this comes from the system settings. CONF_Int32(num_disks, "0"); @@ -289,7 +289,7 @@ namespace config { CONF_Bool(enable_quadratic_probing, "false"); // for pprof - CONF_String(pprof_profile_dir, "${PALO_HOME}/log") + CONF_String(pprof_profile_dir, "${DORIS_HOME}/log") // for partition CONF_Bool(enable_partitioned_hash_join, "false") diff --git a/be/src/service/CMakeLists.txt b/be/src/service/CMakeLists.txt index dbefdcb559..1f03e319af 100644 --- a/be/src/service/CMakeLists.txt +++ b/be/src/service/CMakeLists.txt @@ -34,7 +34,7 @@ add_executable(palo_be # set_target_properties(palo_be PROPERTIES LINK_FLAGS -pthread) target_link_libraries(palo_be - ${PALO_LINK_LIBS} + ${DORIS_LINK_LIBS} ) install(DIRECTORY DESTINATION ${OUTPUT_DIR}/lib/) diff --git a/be/src/service/palo_main.cpp b/be/src/service/palo_main.cpp index 18fff0c5e2..42a200b4d2 100644 --- a/be/src/service/palo_main.cpp +++ b/be/src/service/palo_main.cpp @@ -67,8 +67,8 @@ int main(int argc, char** argv) { } } - if (getenv("PALO_HOME") == nullptr) { - fprintf(stderr, "you need set PALO_HOME environment variable.\n"); + if (getenv("DORIS_HOME") == nullptr) { + fprintf(stderr, "you need set DORIS_HOME environment variable.\n"); exit(-1); } @@ -97,7 +97,7 @@ int main(int argc, char** argv) { exit(-1); } - string conffile = string(getenv("PALO_HOME")) + "/conf/be.conf"; + string conffile = string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/src/util/path_builder.cpp b/be/src/util/path_builder.cpp index e05fc032bb..731886c70b 100644 --- a/be/src/util/path_builder.cpp +++ b/be/src/util/path_builder.cpp @@ -32,7 +32,7 @@ void PathBuilder::load_palo_home() { return; } - _s_palo_home = getenv("PALO_HOME"); + _s_palo_home = getenv("DORIS_HOME"); } void PathBuilder::get_full_path(const std::string& path, std::string* full_path) { diff --git a/be/src/util/path_builder.h b/be/src/util/path_builder.h index ea84f8ade4..d88ff793b6 100644 --- a/be/src/util/path_builder.h +++ b/be/src/util/path_builder.h @@ -28,14 +28,14 @@ namespace palo { // Utility class to construct full paths relative to the palo_home path. class PathBuilder { public: - // Sets full_path to /path + // Sets full_path to /path static void get_full_path(const std::string& path, std::string* full_path); - // Sets full_path to //path + // Sets full_path to //path static void get_full_build_path(const std::string& path, std::string* full_path); private: - // Cache of env['PALO_HOME'] + // Cache of env['DORIS_HOME'] static const char* _s_palo_home; // Load _s_palo_home if it is not already loaded diff --git a/be/test/agent/agent_server_test.cpp b/be/test/agent/agent_server_test.cpp index f2a78b9d30..e53f4bd76d 100644 --- a/be/test/agent/agent_server_test.cpp +++ b/be/test/agent/agent_server_test.cpp @@ -173,7 +173,7 @@ TEST(ReleaseSnapshotTest, TestReleaseSnapshot) { } // namespace palo int main(int argc, char **argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/agent/file_downloader_test.cpp b/be/test/agent/file_downloader_test.cpp index da52c23bc9..c8c2335f25 100644 --- a/be/test/agent/file_downloader_test.cpp +++ b/be/test/agent/file_downloader_test.cpp @@ -116,7 +116,7 @@ TEST(FileDownloaderTest, TestInstallOpt) { } // namespace palo int main(int argc, char **argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/agent/heartbeat_server_test.cpp b/be/test/agent/heartbeat_server_test.cpp index 70edfa74eb..1f8af8a9e2 100644 --- a/be/test/agent/heartbeat_server_test.cpp +++ b/be/test/agent/heartbeat_server_test.cpp @@ -31,7 +31,7 @@ using std::vector; namespace palo { TEST(HeartbeatTest, TestHeartbeat){ - setenv("PALO_HOME", "./", 1); + setenv("DORIS_HOME", "./", 1); THeartbeatResult heartbeat_result; TMasterInfo ori_master_info; ori_master_info.cluster_id = -1; @@ -99,7 +99,7 @@ TEST(HeartbeatTest, TestHeartbeat){ } // namespace palo int main(int argc, char **argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/agent/pusher_test.cpp b/be/test/agent/pusher_test.cpp index 4ee785c1f9..92d9db254d 100644 --- a/be/test/agent/pusher_test.cpp +++ b/be/test/agent/pusher_test.cpp @@ -265,7 +265,7 @@ TEST(PusherTest, TestProcess) { } // namespace palo int main(int argc, char **argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/agent/task_worker_pool_test.cpp b/be/test/agent/task_worker_pool_test.cpp index 1761caf2de..05de7f44af 100644 --- a/be/test/agent/task_worker_pool_test.cpp +++ b/be/test/agent/task_worker_pool_test.cpp @@ -1633,7 +1633,7 @@ TEST(TaskWorkerPoolTest, TestGetTabletInfo) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/agent/utils_test.cpp b/be/test/agent/utils_test.cpp index b40620248f..c6ccdb0159 100644 --- a/be/test/agent/utils_test.cpp +++ b/be/test/agent/utils_test.cpp @@ -36,7 +36,7 @@ TEST(AgentUtilsTest, Test) { } // namespace palo int main(int argc, char **argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/common/resource_tls_test.cpp b/be/test/common/resource_tls_test.cpp index 1ffafd427e..21dc344476 100644 --- a/be/test/common/resource_tls_test.cpp +++ b/be/test/common/resource_tls_test.cpp @@ -45,7 +45,7 @@ TEST_F(ResourceTlsTest, NormalTest) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/broker_reader_test.cpp b/be/test/exec/broker_reader_test.cpp index 38a5a890f8..36c86956e2 100644 --- a/be/test/exec/broker_reader_test.cpp +++ b/be/test/exec/broker_reader_test.cpp @@ -81,7 +81,7 @@ TEST_F(BrokerReaderTest, normal) { } // end namespace palo int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/exec/broker_scan_node_test.cpp b/be/test/exec/broker_scan_node_test.cpp index 164dc98b39..02360742c1 100644 --- a/be/test/exec/broker_scan_node_test.cpp +++ b/be/test/exec/broker_scan_node_test.cpp @@ -424,7 +424,7 @@ TEST_F(BrokerScanNodeTest, normal) { } int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/exec/broker_scanner_test.cpp b/be/test/exec/broker_scanner_test.cpp index de882abbdd..5ac39d2fcd 100644 --- a/be/test/exec/broker_scanner_test.cpp +++ b/be/test/exec/broker_scanner_test.cpp @@ -654,7 +654,7 @@ TEST_F(BrokerScannerTest, normal9) { } // end namespace palo int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/exec/csv_scan_bench_test.cpp b/be/test/exec/csv_scan_bench_test.cpp index e5de036ce7..3a81db7292 100644 --- a/be/test/exec/csv_scan_bench_test.cpp +++ b/be/test/exec/csv_scan_bench_test.cpp @@ -332,7 +332,7 @@ TEST_F(CsvScanNodeBenchTest, NormalUse) { int main(int argc, char** argv) { ProfilerStart("profile_scan_bench"); - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/exec/csv_scan_node_test.cpp b/be/test/exec/csv_scan_node_test.cpp index 293c5ea1fa..91f0d0bc8c 100644 --- a/be/test/exec/csv_scan_node_test.cpp +++ b/be/test/exec/csv_scan_node_test.cpp @@ -426,7 +426,7 @@ TEST_F(CsvScanNodeTest, wrong_fix_len_string_format_test) { } // end namespace palo int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/exec/csv_scanner_test.cpp b/be/test/exec/csv_scanner_test.cpp index b87a4bba71..633b0ad9dd 100644 --- a/be/test/exec/csv_scanner_test.cpp +++ b/be/test/exec/csv_scanner_test.cpp @@ -91,7 +91,7 @@ TEST_F(CsvScannerTest, no_exist_files) { } // end namespace palo int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/exec/hash_table_test.cpp b/be/test/exec/hash_table_test.cpp index d6c8ddad71..c5c7d06cb7 100644 --- a/be/test/exec/hash_table_test.cpp +++ b/be/test/exec/hash_table_test.cpp @@ -342,7 +342,7 @@ TEST_F(HashTableTest, GrowTableTest2) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/mysql_scan_node_test.cpp b/be/test/exec/mysql_scan_node_test.cpp index b37ed61924..60796d23cd 100644 --- a/be/test/exec/mysql_scan_node_test.cpp +++ b/be/test/exec/mysql_scan_node_test.cpp @@ -280,7 +280,7 @@ TEST_F(MysqlScanNodeTest, no_init) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/mysql_scanner_test.cpp b/be/test/exec/mysql_scanner_test.cpp index f97e25eb1b..18d505b076 100644 --- a/be/test/exec/mysql_scanner_test.cpp +++ b/be/test/exec/mysql_scanner_test.cpp @@ -113,7 +113,7 @@ TEST_F(MysqlScannerTest, open_failed) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/new_olap_scan_node_test.cpp b/be/test/exec/new_olap_scan_node_test.cpp index 16c0c0cb64..3035034615 100644 --- a/be/test/exec/new_olap_scan_node_test.cpp +++ b/be/test/exec/new_olap_scan_node_test.cpp @@ -384,7 +384,7 @@ TEST_F(TestOlapScanNode, MultiColumnMultiVersionTest) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/olap_common_test.cpp b/be/test/exec/olap_common_test.cpp index 59103c5cd2..d1a4b400af 100644 --- a/be/test/exec/olap_common_test.cpp +++ b/be/test/exec/olap_common_test.cpp @@ -742,7 +742,7 @@ TEST_F(PaloScanRangeTest, FixedIntersectionTest) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/olap_scan_node_test.cpp b/be/test/exec/olap_scan_node_test.cpp index 6107759e3c..13ab2be4ac 100644 --- a/be/test/exec/olap_scan_node_test.cpp +++ b/be/test/exec/olap_scan_node_test.cpp @@ -434,7 +434,7 @@ TEST_F(OlapScanNodeTest, PushDownInPredicateCase) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/olap_scanner_test.cpp b/be/test/exec/olap_scanner_test.cpp index 09f34be863..43ae52e445 100644 --- a/be/test/exec/olap_scanner_test.cpp +++ b/be/test/exec/olap_scanner_test.cpp @@ -78,7 +78,7 @@ TEST(OlapIdlUtilTest, normalcase) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/partitioned_hash_table_test.cpp b/be/test/exec/partitioned_hash_table_test.cpp index 514e875e16..07c09f0a10 100644 --- a/be/test/exec/partitioned_hash_table_test.cpp +++ b/be/test/exec/partitioned_hash_table_test.cpp @@ -582,7 +582,7 @@ TEST_F(PartitionedHashTableTest, VeryLowMemTest) { } // end namespace palo int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/exec/plain_text_line_reader_bzip_test.cpp b/be/test/exec/plain_text_line_reader_bzip_test.cpp index 91cfef3b77..26a65fb951 100644 --- a/be/test/exec/plain_text_line_reader_bzip_test.cpp +++ b/be/test/exec/plain_text_line_reader_bzip_test.cpp @@ -228,7 +228,7 @@ TEST_F(PlainTextLineReaderTest, bzip2_test_limit5) { } // end namespace palo int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/exec/plain_text_line_reader_gzip_test.cpp b/be/test/exec/plain_text_line_reader_gzip_test.cpp index f9bced3d99..bc2333a229 100644 --- a/be/test/exec/plain_text_line_reader_gzip_test.cpp +++ b/be/test/exec/plain_text_line_reader_gzip_test.cpp @@ -228,7 +228,7 @@ TEST_F(PlainTextLineReaderTest, gzip_test_limit5) { } // end namespace palo int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/exec/plain_text_line_reader_lz4frame_test.cpp b/be/test/exec/plain_text_line_reader_lz4frame_test.cpp index 7910a01ddd..863300f45c 100644 --- a/be/test/exec/plain_text_line_reader_lz4frame_test.cpp +++ b/be/test/exec/plain_text_line_reader_lz4frame_test.cpp @@ -228,7 +228,7 @@ TEST_F(PlainTextLineReaderTest, lz4_test_limit5) { } // end namespace palo int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/exec/plain_text_line_reader_lzop_test.cpp b/be/test/exec/plain_text_line_reader_lzop_test.cpp index 37410c0859..70e895d0a9 100644 --- a/be/test/exec/plain_text_line_reader_lzop_test.cpp +++ b/be/test/exec/plain_text_line_reader_lzop_test.cpp @@ -291,7 +291,7 @@ TEST_F(PlainTextLineReaderTest, lzop_test_larger) { } // end namespace palo int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/exec/plain_text_line_reader_uncompressed_test.cpp b/be/test/exec/plain_text_line_reader_uncompressed_test.cpp index 98a461d26f..600135fac8 100644 --- a/be/test/exec/plain_text_line_reader_uncompressed_test.cpp +++ b/be/test/exec/plain_text_line_reader_uncompressed_test.cpp @@ -238,7 +238,7 @@ TEST_F(PlainTextLineReaderTest, uncompressed_test_limit5) { } // end namespace palo int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/exec/schema_scan_node_test.cpp b/be/test/exec/schema_scan_node_test.cpp index d68e837886..ccd5e4460e 100644 --- a/be/test/exec/schema_scan_node_test.cpp +++ b/be/test/exec/schema_scan_node_test.cpp @@ -228,7 +228,7 @@ TEST_F(SchemaScanNodeTest, no_init) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/schema_scanner/schema_authors_scanner_test.cpp b/be/test/exec/schema_scanner/schema_authors_scanner_test.cpp index ee42696b41..c999cc88ac 100644 --- a/be/test/exec/schema_scanner/schema_authors_scanner_test.cpp +++ b/be/test/exec/schema_scanner/schema_authors_scanner_test.cpp @@ -94,7 +94,7 @@ TEST_F(SchemaAuthorScannerTest, invalid_param) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/schema_scanner/schema_charsets_scanner_test.cpp b/be/test/exec/schema_scanner/schema_charsets_scanner_test.cpp index 3fae7316d2..52f1cf6e06 100644 --- a/be/test/exec/schema_scanner/schema_charsets_scanner_test.cpp +++ b/be/test/exec/schema_scanner/schema_charsets_scanner_test.cpp @@ -94,7 +94,7 @@ TEST_F(SchemaCharsetsScannerTest, invalid_param) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/schema_scanner/schema_collations_scanner_test.cpp b/be/test/exec/schema_scanner/schema_collations_scanner_test.cpp index e530775fde..828093d67c 100644 --- a/be/test/exec/schema_scanner/schema_collations_scanner_test.cpp +++ b/be/test/exec/schema_scanner/schema_collations_scanner_test.cpp @@ -94,7 +94,7 @@ TEST_F(SchemaCollationsScannerTest, invalid_param) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/schema_scanner/schema_columns_scanner_test.cpp b/be/test/exec/schema_scanner/schema_columns_scanner_test.cpp index 4a7971f704..2d3744a731 100644 --- a/be/test/exec/schema_scanner/schema_columns_scanner_test.cpp +++ b/be/test/exec/schema_scanner/schema_columns_scanner_test.cpp @@ -201,7 +201,7 @@ TEST_F(SchemaColumnsScannerTest, start_fail) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/schema_scanner/schema_create_table_scanner_test.cpp b/be/test/exec/schema_scanner/schema_create_table_scanner_test.cpp index f01700d095..bd0eb7984e 100644 --- a/be/test/exec/schema_scanner/schema_create_table_scanner_test.cpp +++ b/be/test/exec/schema_scanner/schema_create_table_scanner_test.cpp @@ -201,7 +201,7 @@ TEST_F(SchemaCreateTableScannerTest, start_fail) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/schema_scanner/schema_engines_scanner_test.cpp b/be/test/exec/schema_scanner/schema_engines_scanner_test.cpp index ee281cb700..df194d73af 100644 --- a/be/test/exec/schema_scanner/schema_engines_scanner_test.cpp +++ b/be/test/exec/schema_scanner/schema_engines_scanner_test.cpp @@ -94,7 +94,7 @@ TEST_F(SchemaEnginesScannerTest, invalid_param) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/schema_scanner/schema_open_tables_scanner_test.cpp b/be/test/exec/schema_scanner/schema_open_tables_scanner_test.cpp index f415410e07..530534dc98 100644 --- a/be/test/exec/schema_scanner/schema_open_tables_scanner_test.cpp +++ b/be/test/exec/schema_scanner/schema_open_tables_scanner_test.cpp @@ -201,7 +201,7 @@ TEST_F(SchemaOpenTablesScannerTest, start_fail) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/schema_scanner/schema_schemata_scanner_test.cpp b/be/test/exec/schema_scanner/schema_schemata_scanner_test.cpp index 202e1358fb..168fd92cdb 100644 --- a/be/test/exec/schema_scanner/schema_schemata_scanner_test.cpp +++ b/be/test/exec/schema_scanner/schema_schemata_scanner_test.cpp @@ -167,7 +167,7 @@ TEST_F(SchemaSchemataScannerTest, start_fail) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/schema_scanner/schema_table_names_scanner_test.cpp b/be/test/exec/schema_scanner/schema_table_names_scanner_test.cpp index d7f2267a63..378d5f073e 100644 --- a/be/test/exec/schema_scanner/schema_table_names_scanner_test.cpp +++ b/be/test/exec/schema_scanner/schema_table_names_scanner_test.cpp @@ -184,7 +184,7 @@ TEST_F(SchemaTableNamesScannerTest, start_fail) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/schema_scanner/schema_tables_scanner_test.cpp b/be/test/exec/schema_scanner/schema_tables_scanner_test.cpp index f970b5b1bd..5cfb65f238 100644 --- a/be/test/exec/schema_scanner/schema_tables_scanner_test.cpp +++ b/be/test/exec/schema_scanner/schema_tables_scanner_test.cpp @@ -201,7 +201,7 @@ TEST_F(SchemaTablesScannerTest, start_fail) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/schema_scanner/schema_variables_scanner_test.cpp b/be/test/exec/schema_scanner/schema_variables_scanner_test.cpp index eb9f7711e4..9b8bd2c995 100644 --- a/be/test/exec/schema_scanner/schema_variables_scanner_test.cpp +++ b/be/test/exec/schema_scanner/schema_variables_scanner_test.cpp @@ -95,7 +95,7 @@ TEST_F(SchemaVariablesScannerTest, invalid_param) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/schema_scanner_test.cpp b/be/test/exec/schema_scanner_test.cpp index 7a3a7b425f..ae99c0d0d4 100644 --- a/be/test/exec/schema_scanner_test.cpp +++ b/be/test/exec/schema_scanner_test.cpp @@ -105,7 +105,7 @@ TEST_F(SchemaScannerTest, no_init_use) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exec/set_executor_test.cpp b/be/test/exec/set_executor_test.cpp index a8c1e2b32e..bed4afb0b4 100644 --- a/be/test/exec/set_executor_test.cpp +++ b/be/test/exec/set_executor_test.cpp @@ -112,7 +112,7 @@ TEST_F(SetExecutorTest, failed_case) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exprs/hybird_set_test.cpp b/be/test/exprs/hybird_set_test.cpp index 9eb17215c2..461d21027e 100644 --- a/be/test/exprs/hybird_set_test.cpp +++ b/be/test/exprs/hybird_set_test.cpp @@ -372,7 +372,7 @@ TEST_F(HybirdSetTest, timestamp) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exprs/in_predicate_test.cpp b/be/test/exprs/in_predicate_test.cpp index 70beb22ae2..def361a4fa 100644 --- a/be/test/exprs/in_predicate_test.cpp +++ b/be/test/exprs/in_predicate_test.cpp @@ -127,7 +127,7 @@ TEST_F(InPredicateTest, 100_const) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/exprs/json_function_test.cpp b/be/test/exprs/json_function_test.cpp index 1cf97b2bf8..893d3520ba 100644 --- a/be/test/exprs/json_function_test.cpp +++ b/be/test/exprs/json_function_test.cpp @@ -160,7 +160,7 @@ TEST_F(JsonFunctionTest, double) } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/bit_field_test.cpp b/be/test/olap/bit_field_test.cpp index c4c83de3c4..045e6ea260 100755 --- a/be/test/olap/bit_field_test.cpp +++ b/be/test/olap/bit_field_test.cpp @@ -184,7 +184,7 @@ TEST_F(TestBitField, Skip) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/bloom_filter_index_test.cpp b/be/test/olap/bloom_filter_index_test.cpp index 516c8edda3..7a69ef9969 100644 --- a/be/test/olap/bloom_filter_index_test.cpp +++ b/be/test/olap/bloom_filter_index_test.cpp @@ -105,7 +105,7 @@ TEST_F(TestBloomFilterIndex, abnormal_read) { } // namespace palo int main(int argc, char **argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/bloom_filter_test.cpp b/be/test/olap/bloom_filter_test.cpp index 5a9a2c1b94..f6df4501a5 100644 --- a/be/test/olap/bloom_filter_test.cpp +++ b/be/test/olap/bloom_filter_test.cpp @@ -155,7 +155,7 @@ TEST_F(TestBloomFilter, bloom_filter_info) { } // namespace palo int main(int argc, char **argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/byte_buffer_test.cpp b/be/test/olap/byte_buffer_test.cpp index 53566a84c6..6c20f7d774 100755 --- a/be/test/olap/byte_buffer_test.cpp +++ b/be/test/olap/byte_buffer_test.cpp @@ -185,7 +185,7 @@ TEST_F(TestByteBuffer, TestMmap) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/column_reader_test.cpp b/be/test/olap/column_reader_test.cpp index 2c66b24856..bb7d5f87a2 100644 --- a/be/test/olap/column_reader_test.cpp +++ b/be/test/olap/column_reader_test.cpp @@ -2692,7 +2692,7 @@ TEST_F(TestColumn, VectorizedDirectVarcharColumnWith65533) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/command_executor_test.cpp b/be/test/olap/command_executor_test.cpp index e8ab59eb73..cfc2d73ba2 100644 --- a/be/test/olap/command_executor_test.cpp +++ b/be/test/olap/command_executor_test.cpp @@ -79,7 +79,7 @@ void set_up() { void tear_down() { system("rm -rf ./test_run"); - remove_all_dir(string(getenv("PALO_HOME")) + UNUSED_PREFIX); + remove_all_dir(string(getenv("DORIS_HOME")) + UNUSED_PREFIX); } void set_default_create_tablet_request(TCreateTabletReq* request) { @@ -1830,7 +1830,7 @@ TEST_F(TestDeleteData, cancel_delete) { } // namespace palo int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/comparison_predicate_test.cpp b/be/test/olap/comparison_predicate_test.cpp index 8b50feb5ab..731c188e72 100644 --- a/be/test/olap/comparison_predicate_test.cpp +++ b/be/test/olap/comparison_predicate_test.cpp @@ -948,7 +948,7 @@ TEST_F(TestLessPredicate, DATETIME_COLUMN) { } // namespace palo int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/delete_handler_test.cpp b/be/test/olap/delete_handler_test.cpp index 21c5a5687f..a333a63e1a 100644 --- a/be/test/olap/delete_handler_test.cpp +++ b/be/test/olap/delete_handler_test.cpp @@ -47,7 +47,7 @@ void set_up() { getcwd(buffer, MAX_PATH_LEN); config::storage_root_path = string(buffer) + "/data_test"; remove_all_dir(config::storage_root_path); - remove_all_dir(string(getenv("PALO_HOME")) + UNUSED_PREFIX); + remove_all_dir(string(getenv("DORIS_HOME")) + UNUSED_PREFIX); create_dir(config::storage_root_path); touch_all_singleton(); } @@ -57,7 +57,7 @@ void tear_down() { getcwd(buffer, MAX_PATH_LEN); config::storage_root_path = string(buffer) + "/data_test"; remove_all_dir(config::storage_root_path); - remove_all_dir(string(getenv("PALO_HOME")) + UNUSED_PREFIX); + remove_all_dir(string(getenv("DORIS_HOME")) + UNUSED_PREFIX); } void set_default_create_tablet_request(TCreateTabletReq* request) { @@ -1121,7 +1121,7 @@ TEST_F(TestDeleteHandler, FilterDataVersion) { } // namespace palo int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/file_helper_test.cpp b/be/test/olap/file_helper_test.cpp index ec6b4d8ab4..5fbd38b555 100644 --- a/be/test/olap/file_helper_test.cpp +++ b/be/test/olap/file_helper_test.cpp @@ -101,7 +101,7 @@ TEST_F(FileHandlerTest, TestWrite) { } // namespace palo int main(int argc, char **argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/file_utils_test.cpp b/be/test/olap/file_utils_test.cpp index 136ba267be..7fa3a34f99 100644 --- a/be/test/olap/file_utils_test.cpp +++ b/be/test/olap/file_utils_test.cpp @@ -87,7 +87,7 @@ TEST_F(FileUtilsTest, TestCopyFile) { } // namespace palo int main(int argc, char **argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/in_list_predicate_test.cpp b/be/test/olap/in_list_predicate_test.cpp index daa0f4a495..7c048f7751 100644 --- a/be/test/olap/in_list_predicate_test.cpp +++ b/be/test/olap/in_list_predicate_test.cpp @@ -668,7 +668,7 @@ TEST_F(TestInListPredicate, DATETIME_COLUMN) { } // namespace palo int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/lru_cache_test.cpp b/be/test/olap/lru_cache_test.cpp index 8494881191..4f609891f5 100644 --- a/be/test/olap/lru_cache_test.cpp +++ b/be/test/olap/lru_cache_test.cpp @@ -235,7 +235,7 @@ TEST_F(CacheTest, NewId) { } // namespace palo int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/null_predicate_test.cpp b/be/test/olap/null_predicate_test.cpp index ac160a9ad6..bba9cf8f1f 100644 --- a/be/test/olap/null_predicate_test.cpp +++ b/be/test/olap/null_predicate_test.cpp @@ -449,7 +449,7 @@ TEST_F(TestNullPredicate, DATETIME_COLUMN) { } // namespace palo int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/olap_reader_test.cpp b/be/test/olap/olap_reader_test.cpp index f50bd2b811..56586adac4 100755 --- a/be/test/olap/olap_reader_test.cpp +++ b/be/test/olap/olap_reader_test.cpp @@ -47,7 +47,7 @@ void set_up() { void tear_down() { system("rm -rf ./test_run"); - remove_all_dir(string(getenv("PALO_HOME")) + UNUSED_PREFIX); + remove_all_dir(string(getenv("DORIS_HOME")) + UNUSED_PREFIX); } void set_default_create_tablet_request(TCreateTabletReq* request) { @@ -1567,7 +1567,7 @@ TEST_F(TestOLAPReaderColumnDeleteCondition, next_tuple) { } // namespace palo int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/row_block_test.cpp b/be/test/olap/row_block_test.cpp index bf4e973143..215372e45c 100644 --- a/be/test/olap/row_block_test.cpp +++ b/be/test/olap/row_block_test.cpp @@ -793,7 +793,7 @@ TEST_F(TestRowBlock, pos_limit) { // @brief Test Stub int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/row_cursor_test.cpp b/be/test/olap/row_cursor_test.cpp index 8a75d5d9fc..7edc3df87c 100644 --- a/be/test/olap/row_cursor_test.cpp +++ b/be/test/olap/row_cursor_test.cpp @@ -570,7 +570,7 @@ TEST_F(TestRowCursor, AggregateWithNull) { } // namespace palo int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/run_length_byte_test.cpp b/be/test/olap/run_length_byte_test.cpp index 81058520fb..879741d9cb 100755 --- a/be/test/olap/run_length_byte_test.cpp +++ b/be/test/olap/run_length_byte_test.cpp @@ -847,7 +847,7 @@ TEST_F(TestRunLengthByte, Skip) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/run_length_integer_test.cpp b/be/test/olap/run_length_integer_test.cpp index 4f13442022..86cd0c9ff3 100755 --- a/be/test/olap/run_length_integer_test.cpp +++ b/be/test/olap/run_length_integer_test.cpp @@ -841,7 +841,7 @@ TEST_F(TestRunLengthSignInteger, DirectEncodingForDeltaOverflows2) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/stream_index_test.cpp b/be/test/olap/stream_index_test.cpp index d55fd20907..053cf40d9c 100755 --- a/be/test/olap/stream_index_test.cpp +++ b/be/test/olap/stream_index_test.cpp @@ -385,7 +385,7 @@ TEST_F(TestStreamIndex, statistic) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/olap/vectorized_olap_reader_test.cpp b/be/test/olap/vectorized_olap_reader_test.cpp index 2f993df14d..3d0ca39534 100644 --- a/be/test/olap/vectorized_olap_reader_test.cpp +++ b/be/test/olap/vectorized_olap_reader_test.cpp @@ -50,7 +50,7 @@ void set_up() { void tear_down() { system("rm -rf ./test_run"); - remove_all_dir(string(getenv("PALO_HOME")) + UNUSED_PREFIX); + remove_all_dir(string(getenv("DORIS_HOME")) + UNUSED_PREFIX); } void set_default_create_tablet_request(TCreateTabletReq* request) { @@ -879,7 +879,7 @@ TEST_F(TestVectorizedOLAPReader, column_test) { } // namespace palo int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/runtime/buffer_control_block_test.cpp b/be/test/runtime/buffer_control_block_test.cpp index 0c374a2853..95500b5e62 100644 --- a/be/test/runtime/buffer_control_block_test.cpp +++ b/be/test/runtime/buffer_control_block_test.cpp @@ -182,7 +182,7 @@ TEST_F(BufferControlBlockTest, get_then_close) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/runtime/buffered_block_mgr2_test.cpp b/be/test/runtime/buffered_block_mgr2_test.cpp index 00fc7ea769..7a92e23d8f 100644 --- a/be/test/runtime/buffered_block_mgr2_test.cpp +++ b/be/test/runtime/buffered_block_mgr2_test.cpp @@ -1270,7 +1270,7 @@ TEST_F(BufferedBlockMgrTest, CreateDestroyMulti) { } // end namespace palo int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/runtime/buffered_tuple_stream2_test.cpp b/be/test/runtime/buffered_tuple_stream2_test.cpp index e7bfc16587..81caecdc4f 100644 --- a/be/test/runtime/buffered_tuple_stream2_test.cpp +++ b/be/test/runtime/buffered_tuple_stream2_test.cpp @@ -829,7 +829,7 @@ TEST_F(ArrayTupleStreamTest, TestArrayDeepCopy) { } int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/runtime/data_spliter_test.cpp b/be/test/runtime/data_spliter_test.cpp index 69a47d2c90..724a99523f 100644 --- a/be/test/runtime/data_spliter_test.cpp +++ b/be/test/runtime/data_spliter_test.cpp @@ -267,7 +267,7 @@ TEST_F(DataSplitTest, NoData) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/runtime/data_stream_test.cpp b/be/test/runtime/data_stream_test.cpp index 679afb6855..453b2c6874 100644 --- a/be/test/runtime/data_stream_test.cpp +++ b/be/test/runtime/data_stream_test.cpp @@ -691,7 +691,7 @@ TEST_F(DataStreamTest, BasicTest) { } int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. conffile path= %s\n", conffile.c_str()); // return -1; diff --git a/be/test/runtime/datetime_value_test.cpp b/be/test/runtime/datetime_value_test.cpp index b905941400..9dfb84e6cf 100644 --- a/be/test/runtime/datetime_value_test.cpp +++ b/be/test/runtime/datetime_value_test.cpp @@ -1390,7 +1390,7 @@ TEST_F(DateTimeValueTest, packed_time) { } int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/runtime/decimal_value_test.cpp b/be/test/runtime/decimal_value_test.cpp index d6afff5118..31d287f066 100755 --- a/be/test/runtime/decimal_value_test.cpp +++ b/be/test/runtime/decimal_value_test.cpp @@ -540,7 +540,7 @@ TEST_F(DecimalValueTest, float_to_decimal) { } // end namespace palo int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/runtime/disk_io_mgr_test.cpp b/be/test/runtime/disk_io_mgr_test.cpp index d4934d3806..87172da4d4 100644 --- a/be/test/runtime/disk_io_mgr_test.cpp +++ b/be/test/runtime/disk_io_mgr_test.cpp @@ -1096,7 +1096,7 @@ TEST_F(DiskIoMgrTest, PartialRead) { } // end namespace palo int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/runtime/dpp_sink_test.cpp b/be/test/runtime/dpp_sink_test.cpp index 6d173766d5..43c2e37b31 100644 --- a/be/test/runtime/dpp_sink_test.cpp +++ b/be/test/runtime/dpp_sink_test.cpp @@ -255,7 +255,7 @@ TEST_F(DppSinkTest, WithData) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/runtime/dpp_writer_test.cpp b/be/test/runtime/dpp_writer_test.cpp index 422ce6eef3..e48b7f57b0 100644 --- a/be/test/runtime/dpp_writer_test.cpp +++ b/be/test/runtime/dpp_writer_test.cpp @@ -208,7 +208,7 @@ TEST_F(DppWriterTest, normalCase) { } int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/runtime/etl_job_mgr_test.cpp b/be/test/runtime/etl_job_mgr_test.cpp index dc90aa0c7e..d3a84d495f 100644 --- a/be/test/runtime/etl_job_mgr_test.cpp +++ b/be/test/runtime/etl_job_mgr_test.cpp @@ -223,7 +223,7 @@ TEST_F(EtlJobMgrTest, FinishUnknowJob) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/runtime/export_task_mgr_test.cpp b/be/test/runtime/export_task_mgr_test.cpp index 18768ebc9c..67f8a62eb8 100644 --- a/be/test/runtime/export_task_mgr_test.cpp +++ b/be/test/runtime/export_task_mgr_test.cpp @@ -218,7 +218,7 @@ TEST_F(ExportTaskMgrTest, FinishUnknowJob) { } int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/runtime/free_list_test.cpp b/be/test/runtime/free_list_test.cpp index 7612e9c7fa..b526f618fe 100644 --- a/be/test/runtime/free_list_test.cpp +++ b/be/test/runtime/free_list_test.cpp @@ -150,7 +150,7 @@ TEST(FreeListTest, Basic) { int main(int argc, char** argv) { #if 0 - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/runtime/large_int_value_test.cpp b/be/test/runtime/large_int_value_test.cpp index cfb0ecdc28..ae8412b5a3 100644 --- a/be/test/runtime/large_int_value_test.cpp +++ b/be/test/runtime/large_int_value_test.cpp @@ -92,7 +92,7 @@ TEST_F(LargeIntValueTest, largeint_to_string) { } // end namespace palo int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/runtime/mem_limit_test.cpp b/be/test/runtime/mem_limit_test.cpp index 8a2a2647e4..cd161baba9 100644 --- a/be/test/runtime/mem_limit_test.cpp +++ b/be/test/runtime/mem_limit_test.cpp @@ -252,7 +252,7 @@ TEST(MemTestTest, GcFunctions) { } // end namespace palo int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/runtime/mem_pool_test.cpp b/be/test/runtime/mem_pool_test.cpp index 9ff1b244b7..41f97df06f 100644 --- a/be/test/runtime/mem_pool_test.cpp +++ b/be/test/runtime/mem_pool_test.cpp @@ -282,7 +282,7 @@ TEST(MemPoolTest, MaxAllocation) { } int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/runtime/mysql_table_writer_test.cpp b/be/test/runtime/mysql_table_writer_test.cpp index a187cfc262..e3e7725cd7 100644 --- a/be/test/runtime/mysql_table_writer_test.cpp +++ b/be/test/runtime/mysql_table_writer_test.cpp @@ -187,7 +187,7 @@ TEST_F(MysqlTableWriterTest, NormalTest) { } int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/runtime/qsorter_test.cpp b/be/test/runtime/qsorter_test.cpp index 9f0e76d8ed..c4d59826cc 100644 --- a/be/test/runtime/qsorter_test.cpp +++ b/be/test/runtime/qsorter_test.cpp @@ -282,7 +282,7 @@ TEST_F(QSorterTest, normalCase) { } int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/runtime/raw_value_test.cpp b/be/test/runtime/raw_value_test.cpp index f01cc75e15..ca327047aa 100644 --- a/be/test/runtime/raw_value_test.cpp +++ b/be/test/runtime/raw_value_test.cpp @@ -43,7 +43,7 @@ TEST_F(RawValueTest, Compare) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/runtime/result_buffer_mgr_test.cpp b/be/test/runtime/result_buffer_mgr_test.cpp index 28344ffbbf..fefd704de2 100644 --- a/be/test/runtime/result_buffer_mgr_test.cpp +++ b/be/test/runtime/result_buffer_mgr_test.cpp @@ -116,7 +116,7 @@ TEST_F(ResultBufferMgrTest, cancel_no_block) { } } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/runtime/result_sink_test.cpp b/be/test/runtime/result_sink_test.cpp index cf83f9cdec..d5d501ab20 100644 --- a/be/test/runtime/result_sink_test.cpp +++ b/be/test/runtime/result_sink_test.cpp @@ -90,7 +90,7 @@ TEST_F(ResultSinkTest, init_normal) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/runtime/result_writer_test.cpp b/be/test/runtime/result_writer_test.cpp index ddf82a6767..d40502876b 100644 --- a/be/test/runtime/result_writer_test.cpp +++ b/be/test/runtime/result_writer_test.cpp @@ -149,7 +149,7 @@ TEST_F(ResultWriterTest, AppendRowBatch_normal) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/runtime/snapshot_loader_test.cpp b/be/test/runtime/snapshot_loader_test.cpp index d1e0c6974c..7b8f906980 100644 --- a/be/test/runtime/snapshot_loader_test.cpp +++ b/be/test/runtime/snapshot_loader_test.cpp @@ -108,7 +108,7 @@ TEST_F(SnapshotLoaderTest, NormalCase) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/runtime/string_buffer_test.cpp b/be/test/runtime/string_buffer_test.cpp index 9e32adddaa..f0bf392402 100644 --- a/be/test/runtime/string_buffer_test.cpp +++ b/be/test/runtime/string_buffer_test.cpp @@ -74,7 +74,7 @@ TEST(StringBufferTest, Basic) { int main(int argc, char** argv) { #if 0 - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/runtime/string_value_test.cpp b/be/test/runtime/string_value_test.cpp index 6055d1cbc4..d5bcb0d3ba 100644 --- a/be/test/runtime/string_value_test.cpp +++ b/be/test/runtime/string_value_test.cpp @@ -83,7 +83,7 @@ TEST(StringValueTest, TestCompare) { int main(int argc, char** argv) { #if 0 - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/runtime/thread_resource_mgr_test.cpp b/be/test/runtime/thread_resource_mgr_test.cpp index 47d87447b6..3f59191fb5 100644 --- a/be/test/runtime/thread_resource_mgr_test.cpp +++ b/be/test/runtime/thread_resource_mgr_test.cpp @@ -92,7 +92,7 @@ TEST(ThreadResourceMgr, BasicTest) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/runtime/tmp_file_mgr_test.cpp b/be/test/runtime/tmp_file_mgr_test.cpp index ad1c5fdbae..9d5521f8ba 100644 --- a/be/test/runtime/tmp_file_mgr_test.cpp +++ b/be/test/runtime/tmp_file_mgr_test.cpp @@ -234,7 +234,7 @@ TEST_F(TmpFileMgrTest, TestAllocateFails) { } // end namespace palo int main(int argc, char** argv) { - // std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + // std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/udf/uda_test.cpp b/be/test/udf/uda_test.cpp index 41768773fd..a3b3fc179f 100755 --- a/be/test/udf/uda_test.cpp +++ b/be/test/udf/uda_test.cpp @@ -315,7 +315,7 @@ TEST(MinTest, Basic) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/udf/udf_test.cpp b/be/test/udf/udf_test.cpp index 5d488c6920..3414acce30 100755 --- a/be/test/udf/udf_test.cpp +++ b/be/test/udf/udf_test.cpp @@ -211,7 +211,7 @@ TEST(UdfTest, TestVarArgs) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/util/bit_util_test.cpp b/be/test/util/bit_util_test.cpp index 9e6a8977ed..f86f78c4f8 100644 --- a/be/test/util/bit_util_test.cpp +++ b/be/test/util/bit_util_test.cpp @@ -50,7 +50,7 @@ TEST(BitUtil, Popcount) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/util/cidr_test.cpp b/be/test/util/cidr_test.cpp index e4c7750c19..c22a60c78e 100644 --- a/be/test/util/cidr_test.cpp +++ b/be/test/util/cidr_test.cpp @@ -55,7 +55,7 @@ TEST(CIDR, contains) { } // end namespace palo int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/util/count_down_latch_test.cpp b/be/test/util/count_down_latch_test.cpp index fd29c9a666..5cdb51848e 100644 --- a/be/test/util/count_down_latch_test.cpp +++ b/be/test/util/count_down_latch_test.cpp @@ -89,7 +89,7 @@ TEST_F(CountDownLatchTest, Timeout) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/util/decompress_test.cpp b/be/test/util/decompress_test.cpp index 4a90279fec..5f5da33953 100644 --- a/be/test/util/decompress_test.cpp +++ b/be/test/util/decompress_test.cpp @@ -104,7 +104,7 @@ TEST_F(DecompressorTest, SnappyBlocked) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/util/filesystem_util_test.cpp b/be/test/util/filesystem_util_test.cpp index bf6817e32f..7486f0e7a7 100644 --- a/be/test/util/filesystem_util_test.cpp +++ b/be/test/util/filesystem_util_test.cpp @@ -121,7 +121,7 @@ TEST(FilesystemUtil, contain_path) { } // end namespace palo int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/util/internal_queue_test.cpp b/be/test/util/internal_queue_test.cpp index 2d836e2892..6482330d0f 100644 --- a/be/test/util/internal_queue_test.cpp +++ b/be/test/util/internal_queue_test.cpp @@ -314,7 +314,7 @@ TEST(InternalQueue, TestMultiProducerMultiConsumer) { } // end namespace palo int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/util/lru_cache_util_test.cpp b/be/test/util/lru_cache_util_test.cpp index 29c1f9de29..5a30ec9ced 100644 --- a/be/test/util/lru_cache_util_test.cpp +++ b/be/test/util/lru_cache_util_test.cpp @@ -91,7 +91,7 @@ TEST_F(LruCacheTest, OverSize) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/util/palo_metrics_test.cpp b/be/test/util/palo_metrics_test.cpp index c370275ca8..b810c78c22 100644 --- a/be/test/util/palo_metrics_test.cpp +++ b/be/test/util/palo_metrics_test.cpp @@ -275,7 +275,7 @@ TEST_F(PaloMetricsTest, Normal) { int main(int argc, char** argv) { #if 0 - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/util/path_trie_test.cpp b/be/test/util/path_trie_test.cpp index fe11606ad5..ea845a6a84 100644 --- a/be/test/util/path_trie_test.cpp +++ b/be/test/util/path_trie_test.cpp @@ -168,7 +168,7 @@ TEST_F(PathTrieTest, EmptyTest) { } int main(int argc, char* argv[]) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/util/perf_counters_test.cpp b/be/test/util/perf_counters_test.cpp index 5881d3a840..8c0599327d 100644 --- a/be/test/util/perf_counters_test.cpp +++ b/be/test/util/perf_counters_test.cpp @@ -67,7 +67,7 @@ TEST(DiskInfoTest, Basic) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/util/runtime_profile_test.cpp b/be/test/util/runtime_profile_test.cpp index a10ac76be3..f3588b3dcf 100644 --- a/be/test/util/runtime_profile_test.cpp +++ b/be/test/util/runtime_profile_test.cpp @@ -353,7 +353,7 @@ TEST(CountersTest, BucketCounters) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/util/string_parser_test.cpp b/be/test/util/string_parser_test.cpp index 4efb7dfb00..82333648da 100644 --- a/be/test/util/string_parser_test.cpp +++ b/be/test/util/string_parser_test.cpp @@ -487,7 +487,7 @@ TEST(StringToFloat, BruteForce) { } // end namespace palo int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; // if (!palo::config::init(conffile.c_str(), false)) { // fprintf(stderr, "error read config file. \n"); // return -1; diff --git a/be/test/util/system_metrics_test.cpp b/be/test/util/system_metrics_test.cpp index 39ce2ada5b..9af9e945fe 100644 --- a/be/test/util/system_metrics_test.cpp +++ b/be/test/util/system_metrics_test.cpp @@ -284,7 +284,7 @@ TEST_F(SystemMetricsTest, no_proc_file) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/util/thread_pool_test.cpp b/be/test/util/thread_pool_test.cpp index 5dc81ce90b..e8b622d461 100644 --- a/be/test/util/thread_pool_test.cpp +++ b/be/test/util/thread_pool_test.cpp @@ -69,7 +69,7 @@ TEST(ThreadPoolTest, BasicTest) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/be/test/util/url_coding_test.cpp b/be/test/util/url_coding_test.cpp index b1b93b3ef5..4e489bcbd8 100644 --- a/be/test/util/url_coding_test.cpp +++ b/be/test/util/url_coding_test.cpp @@ -107,7 +107,7 @@ TEST(HtmlEscapingTest, Basic) { } int main(int argc, char** argv) { - std::string conffile = std::string(getenv("PALO_HOME")) + "/conf/be.conf"; + std::string conffile = std::string(getenv("DORIS_HOME")) + "/conf/be.conf"; if (!palo::config::init(conffile.c_str(), false)) { fprintf(stderr, "error read config file. \n"); return -1; diff --git a/bin/start_be.sh b/bin/start_be.sh index e9766613b4..0a0e414493 100755 --- a/bin/start_be.sh +++ b/bin/start_be.sh @@ -17,15 +17,15 @@ curdir=`dirname "$0"` curdir=`cd "$curdir"; pwd` -export PALO_HOME=`cd "$curdir/.."; pwd` +export DORIS_HOME=`cd "$curdir/.."; pwd` # export env variables from be.conf # # UDF_RUNTIME_DIR # LOG_DIR # PID_DIR -export UDF_RUNTIME_DIR=${PALO_HOME}/lib/udf-runtime -export LOG_DIR=${PALO_HOME}/log +export UDF_RUNTIME_DIR=${DORIS_HOME}/lib/udf-runtime +export LOG_DIR=${DORIS_HOME}/log export PID_DIR=`cd "$curdir"; pwd` while read line; do @@ -34,10 +34,10 @@ while read line; do if [[ $envline == *"="* ]]; then eval 'export "$envline"' fi -done < $PALO_HOME/conf/be.conf +done < $DORIS_HOME/conf/be.conf -if [ -e $PALO_HOME/bin/palo_env.sh ]; then - source $PALO_HOME/bin/palo_env.sh +if [ -e $DORIS_HOME/bin/palo_env.sh ]; then + source $DORIS_HOME/bin/palo_env.sh fi if [ ! -d $LOG_DIR ]; then @@ -61,7 +61,7 @@ if [ -f $pidfile ]; then fi fi -chmod 755 ${PALO_HOME}/lib/palo_be +chmod 755 ${DORIS_HOME}/lib/palo_be echo "start time: "$(date) >> $LOG_DIR/be.out if [ ! -f /bin/limit3 ]; then @@ -70,4 +70,4 @@ else LIMIT="/bin/limit3 -c 0 -n 65536" fi -nohup $LIMIT ${PALO_HOME}/lib/palo_be "$@" >> $LOG_DIR/be.out 2>&1 > $LOG_DIR/be.out 2>&1 - + - baidu-env + custom-env - env.THIRDPARTY_REPO + env.CUSTOM_MAVEN_REPO - baidu-nexus - ${env.THIRDPARTY_REPO} + custom-nexus + ${env.CUSTOM_MAVEN_REPO} - baidu-nexus - ${env.THIRDPARTY_REPO} + custom-nexus + ${env.CUSTOM_MAVEN_REPO} diff --git a/fe/src/main/java/com/baidu/palo/PaloFe.java b/fe/src/main/java/com/baidu/palo/PaloFe.java index d981932064..ec281678ca 100644 --- a/fe/src/main/java/com/baidu/palo/PaloFe.java +++ b/fe/src/main/java/com/baidu/palo/PaloFe.java @@ -58,9 +58,9 @@ public class PaloFe { System.out.println(cmdLineOpts.toString()); try { - final String paloHome = System.getenv("PALO_HOME"); + final String paloHome = System.getenv("DORIS_HOME"); if (Strings.isNullOrEmpty(paloHome)) { - System.out.println("env PALO_HOME is not set."); + System.out.println("env DORIS_HOME is not set."); return; } diff --git a/fe/src/main/java/com/baidu/palo/backup/CommandBuilder.java b/fe/src/main/java/com/baidu/palo/backup/CommandBuilder.java index e258fd7375..663008c67d 100644 --- a/fe/src/main/java/com/baidu/palo/backup/CommandBuilder.java +++ b/fe/src/main/java/com/baidu/palo/backup/CommandBuilder.java @@ -35,8 +35,8 @@ import java.util.Map; public class CommandBuilder implements Writable { private static final Logger LOG = LogManager.getLogger(CommandBuilder.class); - private static final String PALO_HOME = System.getenv("PALO_HOME"); - private static final String BACKUP_PLUGIN_CMD = PALO_HOME + Config.backup_plugin_path; + private static final String DORIS_HOME = System.getenv("DORIS_HOME"); + private static final String BACKUP_PLUGIN_CMD = DORIS_HOME + Config.backup_plugin_path; private static final String ACTION_UPLOAD = "upload"; private static final String ACTION_DOWNLOAD = "download"; diff --git a/fe/src/main/java/com/baidu/palo/common/Config.java b/fe/src/main/java/com/baidu/palo/common/Config.java index e20fdbd8c2..e5eedbd399 100644 --- a/fe/src/main/java/com/baidu/palo/common/Config.java +++ b/fe/src/main/java/com/baidu/palo/common/Config.java @@ -22,7 +22,7 @@ public class Config extends ConfigBase { * fe.log: all logs of FE process. * fe.warn.log all WARNING and ERROR log of FE process. */ - @ConfField public static String sys_log_dir = System.getenv("PALO_HOME") + "/log"; + @ConfField public static String sys_log_dir = System.getenv("DORIS_HOME") + "/log"; @ConfField public static String sys_log_level = "INFO"; // INFO, WARNING, ERROR, FATAL /* * The roll mode of FE log files. @@ -49,7 +49,7 @@ public class Config extends ConfigBase { * This specifies FE audit log dir. * Audit log fe.audit.log contains all SQL queries with related infos such as user, host, cost, status, etc. */ - @ConfField public static String audit_log_dir = System.getenv("PALO_HOME") + "/log"; + @ConfField public static String audit_log_dir = System.getenv("DORIS_HOME") + "/log"; /* * Slow query contains all queries which cost exceed *qe_slow_log_ms* */ @@ -81,13 +81,13 @@ public class Config extends ConfigBase { * 1. High write performance (SSD) * 2. Safe (RAID) */ - @ConfField public static String meta_dir = System.getenv("PALO_HOME") + "/palo-meta"; + @ConfField public static String meta_dir = System.getenv("DORIS_HOME") + "/palo-meta"; /* * temp dir is used to save intermediate results of some process, such as backup and restore process. * file in this dir will be cleaned after these process is finished. */ - @ConfField public static String tmp_dir = System.getenv("PALO_HOME") + "/temp_dir"; + @ConfField public static String tmp_dir = System.getenv("DORIS_HOME") + "/temp_dir"; /* * Edit log type. diff --git a/fe/src/main/java/com/baidu/palo/http/action/StaticResourceAction.java b/fe/src/main/java/com/baidu/palo/http/action/StaticResourceAction.java index a8220ede9d..31bc090024 100644 --- a/fe/src/main/java/com/baidu/palo/http/action/StaticResourceAction.java +++ b/fe/src/main/java/com/baidu/palo/http/action/StaticResourceAction.java @@ -114,7 +114,7 @@ public class StaticResourceAction extends WebBaseAction { } public static void registerAction(ActionController controller) throws IllegalArgException { - String httpDir = System.getenv("PALO_HOME") + "/webroot"; + String httpDir = System.getenv("DORIS_HOME") + "/webroot"; StaticResourceAction action = new StaticResourceAction(controller, httpDir + "/static"); controller.registerHandler(HttpMethod.GET, "/static/js", action); controller.registerHandler(HttpMethod.GET, "/static/css", action); diff --git a/fe/src/main/java/com/baidu/palo/load/DppScheduler.java b/fe/src/main/java/com/baidu/palo/load/DppScheduler.java index 6343815333..34b1858806 100644 --- a/fe/src/main/java/com/baidu/palo/load/DppScheduler.java +++ b/fe/src/main/java/com/baidu/palo/load/DppScheduler.java @@ -51,12 +51,12 @@ import java.util.concurrent.ConcurrentMap; public class DppScheduler { private static final Logger LOG = LogManager.getLogger(DppScheduler.class); - private static final String PALO_HOME = System.getenv("PALO_HOME"); - private static final String HADOOP_CLIENT = PALO_HOME + Config.dpp_hadoop_client_path; + private static final String DORIS_HOME = System.getenv("DORIS_HOME"); + private static final String HADOOP_CLIENT = DORIS_HOME + Config.dpp_hadoop_client_path; private static final String DPP_OUTPUT_DIR = "export"; - private static final String JOB_CONFIG_DIR = PALO_HOME + "/temp/job_conf"; + private static final String JOB_CONFIG_DIR = DORIS_HOME + "/temp/job_conf"; private static final String JOB_CONFIG_FILE = "jobconfig.json"; - private static final String LOCAL_DPP_DIR = PALO_HOME + "/lib/dpp/" + FeConstants.dpp_version; + private static final String LOCAL_DPP_DIR = DORIS_HOME + "/lib/dpp/" + FeConstants.dpp_version; private static final int DEFAULT_REDUCE_NUM = 1000; private static final long GB = 1024 * 1024 * 1024L; diff --git a/fe/src/test/java/com/baidu/palo/load/DppSchedulerTest.java b/fe/src/test/java/com/baidu/palo/load/DppSchedulerTest.java index 583244ebf8..abb25f0df1 100644 --- a/fe/src/test/java/com/baidu/palo/load/DppSchedulerTest.java +++ b/fe/src/test/java/com/baidu/palo/load/DppSchedulerTest.java @@ -51,7 +51,7 @@ public class DppSchedulerTest { public void setUp() { // mock palo home env PowerMock.mockStatic(System.class); - EasyMock.expect(System.getenv("PALO_HOME")).andReturn(".").anyTimes(); + EasyMock.expect(System.getenv("DORIS_HOME")).andReturn(".").anyTimes(); EasyMock.expect(System.currentTimeMillis()).andReturn(1000L).anyTimes(); PowerMock.replay(System.class); diff --git a/gensrc/proto/Makefile b/gensrc/proto/Makefile index 29ec0dc342..84a2295bfb 100644 --- a/gensrc/proto/Makefile +++ b/gensrc/proto/Makefile @@ -17,7 +17,7 @@ BUILD_DIR = ${CURDIR}/../build/ -PROTOC = ${CURDIR}/../../thirdparty/installed/bin/protoc +PROTOC = ${DORIS_THIRDPARTY}/installed/bin/protoc SOURCES = $(shell find ${CURDIR} -name "*.proto") OBJECTS = $(patsubst ${CURDIR}/%.proto, ${BUILD_DIR}/gen_cpp/%.pb.cc, ${SOURCES}) diff --git a/gensrc/script/gen_build_version.sh b/gensrc/script/gen_build_version.sh index 06b02af669..24f1c40e83 100755 --- a/gensrc/script/gen_build_version.sh +++ b/gensrc/script/gen_build_version.sh @@ -37,22 +37,22 @@ hostname=`hostname` cwd=`pwd` -if [ -z ${PALO_HOME+x} ] +if [ -z ${DORIS_HOME+x} ] then ROOT=`dirname "$0"` ROOT=`cd "$ROOT"; pwd` - PALO_HOME=${ROOT}/../.. - echo "PALO_HOME: ${PALO_HOME}" + DORIS_HOME=${ROOT}/../.. + echo "DORIS_HOME: ${DORIS_HOME}" fi if [[ -z ${PALO_TEST_BINARY_DIR} ]]; then - if [ -e ${PALO_HOME}/gensrc/build/java/com/baidu/palo/common/Version.java \ - -a -e ${PALO_HOME}/gensrc/build/gen_cpp/version.h ]; then + if [ -e ${DORIS_HOME}/gensrc/build/java/com/baidu/palo/common/Version.java \ + -a -e ${DORIS_HOME}/gensrc/build/gen_cpp/version.h ]; then exit fi fi -cd ${PALO_HOME} +cd ${DORIS_HOME} if [ -d .svn ]; then revision=`svn info | sed -n -e 's/Last Changed Rev: \(.*\)/\1/p'` url=`svn info | sed -n -e 's/^URL: \(.*\)/\1/p'` @@ -62,10 +62,10 @@ if [ -d .svn ]; then fi elif [ -d .git ]; then revision=`git log -1 --pretty=format:"%H"` - url="git://${hostname}${PALO_HOME}" + url="git://${hostname}${DORIS_HOME}" else revision="Unknown" - url="file://${PALO_HOME}" + url="file://${DORIS_HOME}" fi cd ${cwd} @@ -74,7 +74,7 @@ build_hash="${url}@${revision}" build_time="${date}" build_info="${user}@${hostname}" -VERSION_PACKAGE="${PALO_HOME}/gensrc/build/java/com/baidu/palo/common" +VERSION_PACKAGE="${DORIS_HOME}/gensrc/build/java/com/baidu/palo/common" mkdir -p ${VERSION_PACKAGE} cat >"${VERSION_PACKAGE}/Version.java" <"${GEN_CPP_DIR}/version.h" <