You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by "fengbaoli@uce.cn" <fe...@uce.cn> on 2021/10/15 01:27:54 UTC
编译doris最新版本问题
hello:
今天编译doris,当编译到be的时候,出现以下错误:
In file included from /opt/build_doris/lastest/incubator-doris/be/src/exec/broker_scanner.cpp:44:
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.h:57:5: error: 'hdfsFS' does not name a type
57 | hdfsFS _hdfs_fs;
| ^~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.h:58:5: error: 'hdfsFile' does not name a type
58 | hdfsFile _hdfs_file;
| ^~~~~~~~
In file included from /opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:18:
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.h:52:5: error: 'hdfsFS' does not name a type
52 | hdfsFS _hdfs_fs = nullptr;
| ^~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.h:53:5: error: 'hdfsFile' does not name a type
53 | hdfsFile _hdfs_file = nullptr;
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp: In constructor 'doris::HDFSWriter::HDFSWriter(std::map<std::basic_string<char>, std::basic_string<char> >&, const string&)':
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:32:11: error: class 'doris::HDFSWriter' does not have any field named '_hdfs_fs'
32 | _hdfs_fs(nullptr) {
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp: In member function 'virtual doris::Status doris::HDFSWriter::open()':
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:42:9: error: '_hdfs_fs' was not declared in this scope
42 | if (_hdfs_fs == nullptr) {
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:45:29: error: '_hdfs_fs' was not declared in this scope
45 | int exists = hdfsExists(_hdfs_fs, _path.c_str());
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:45:18: error: 'hdfsExists' was not declared in this scope
45 | int exists = hdfsExists(_hdfs_fs, _path.c_str());
| ^~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:51:5: error: '_hdfs_file' was not declared in this scope
51 | _hdfs_file = hdfsOpenFile(_hdfs_fs, _path.c_str(), O_WRONLY, 0, 0, 0);
| ^~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:51:56: error: 'O_WRONLY' was not declared in this scope
51 | _hdfs_file = hdfsOpenFile(_hdfs_fs, _path.c_str(), O_WRONLY, 0, 0, 0);
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:51:18: error: 'hdfsOpenFile' was not declared in this scope
51 | _hdfs_file = hdfsOpenFile(_hdfs_fs, _path.c_str(), O_WRONLY, 0, 0, 0);
| ^~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp: In member function 'virtual doris::Status doris::HDFSWriter::write(const uint8_t*, size_t, size_t*)':
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:66:32: error: '_hdfs_fs' was not declared in this scope
66 | int32_t result = hdfsWrite(_hdfs_fs, _hdfs_file, buf, buf_len);
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:66:42: error: '_hdfs_file' was not declared in this scope
66 | int32_t result = hdfsWrite(_hdfs_fs, _hdfs_file, buf, buf_len);
| ^~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:66:22: error: 'hdfsWrite' was not declared in this scope
66 | int32_t result = hdfsWrite(_hdfs_fs, _hdfs_file, buf, buf_len);
| ^~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp: In member function 'virtual doris::Status doris::HDFSWriter::close()':
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:83:9: error: '_hdfs_fs' was not declared in this scope
83 | if (_hdfs_fs == nullptr) {
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:86:9: error: '_hdfs_file' was not declared in this scope
86 | if (_hdfs_file == nullptr) {
| ^~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:88:24: error: '_hdfs_fs' was not declared in this scope
88 | hdfsDisconnect(_hdfs_fs);
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:88:9: error: 'hdfsDisconnect' was not declared in this scope
88 | hdfsDisconnect(_hdfs_fs);
| ^~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:91:28: error: '_hdfs_fs' was not declared in this scope
91 | int result = hdfsFlush(_hdfs_fs, _hdfs_file);
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:91:38: error: '_hdfs_file' was not declared in this scope
91 | int result = hdfsFlush(_hdfs_fs, _hdfs_file);
| ^~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:91:18: error: 'hdfsFlush' was not declared in this scope
91 | int result = hdfsFlush(_hdfs_fs, _hdfs_file);
| ^~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:98:5: error: 'hdfsCloseFile' was not declared in this scope
98 | hdfsCloseFile(_hdfs_fs, _hdfs_file);
| ^~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:99:5: error: 'hdfsDisconnect' was not declared in this scope
99 | hdfsDisconnect(_hdfs_fs);
| ^~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp: In member function 'doris::Status doris::HDFSWriter::_connect()':
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:107:5: error: 'hdfsBuilder' was not declared in this scope
107 | hdfsBuilder* hdfs_builder = hdfsNewBuilder();
| ^~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:107:18: error: 'hdfs_builder' was not declared in this scope
107 | hdfsBuilder* hdfs_builder = hdfsNewBuilder();
| ^~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:107:33: error: 'hdfsNewBuilder' was not declared in this scope
107 | hdfsBuilder* hdfs_builder = hdfsNewBuilder();
| ^~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:108:5: error: 'hdfsBuilderSetNameNode' was not declared in this scope
108 | hdfsBuilderSetNameNode(hdfs_builder, _namenode.c_str());
| ^~~~~~~~~~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:111:9: error: 'hdfsBuilderSetUserName' was not declared in this scope
111 | hdfsBuilderSetUserName(hdfs_builder, _user.c_str());
| ^~~~~~~~~~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:115:9: error: 'hdfsBuilderSetPrincipal' was not declared in this scope
115 | hdfsBuilderSetPrincipal(hdfs_builder, _kerb_principal.c_str());
| ^~~~~~~~~~~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:118:9: error: 'hdfsBuilderSetKerbTicketCachePath' was not declared in this scope
118 | hdfsBuilderSetKerbTicketCachePath(hdfs_builder, _kerb_ticket_cache_path.c_str());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:122:9: error: 'hdfsBuilderSetToken' was not declared in this scope
122 | hdfsBuilderSetToken(hdfs_builder, _token.c_str());
| ^~~~~~~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:128:13: error: 'hdfsBuilderConfSetStr' was not declared in this scope
128 | hdfsBuilderConfSetStr(hdfs_builder, iter->first.c_str(), iter->second.c_str());
| ^~~~~~~~~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:131:5: error: '_hdfs_fs' was not declared in this scope
131 | _hdfs_fs = hdfsBuilderConnect(hdfs_builder);
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:131:16: error: 'hdfsBuilderConnect' was not declared in this scope
131 | _hdfs_fs = hdfsBuilderConnect(hdfs_builder);
| ^~~~~~~~~~~~~~~~~~
make[2]: *** [src/exec/CMakeFiles/Exec.dir/build.make:1224: src/exec/CMakeFiles/Exec.dir/hdfs_writer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:17:
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.h:57:5: error: 'hdfsFS' does not name a type
57 | hdfsFS _hdfs_fs;
| ^~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.h:58:5: error: 'hdfsFile' does not name a type
58 | hdfsFile _hdfs_file;
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In constructor 'doris::HdfsFileReader::HdfsFileReader(doris::THdfsParams, const string&, int64_t)':
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:31:11: error: class 'doris::HdfsFileReader' does not have any field named '_hdfs_fs'
31 | _hdfs_fs(nullptr),
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:32:11: error: class 'doris::HdfsFileReader' does not have any field named '_hdfs_file'
32 | _hdfs_file(nullptr) {
| ^~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In member function 'doris::Status doris::HdfsFileReader::connect()':
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:41:5: error: 'hdfsBuilder' was not declared in this scope
41 | hdfsBuilder* hdfs_builder = hdfsNewBuilder();
| ^~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:41:18: error: 'hdfs_builder' was not declared in this scope
41 | hdfsBuilder* hdfs_builder = hdfsNewBuilder();
| ^~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:41:33: error: 'hdfsNewBuilder' was not declared in this scope
41 | hdfsBuilder* hdfs_builder = hdfsNewBuilder();
| ^~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:42:5: error: 'hdfsBuilderSetNameNode' was not declared in this scope
42 | hdfsBuilderSetNameNode(hdfs_builder, _namenode.c_str());
| ^~~~~~~~~~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:45:9: error: 'hdfsBuilderSetUserName' was not declared in this scope
45 | hdfsBuilderSetUserName(hdfs_builder, _hdfs_params.user.c_str());
| ^~~~~~~~~~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:49:9: error: 'hdfsBuilderSetPrincipal' was not declared in this scope
49 | hdfsBuilderSetPrincipal(hdfs_builder, _hdfs_params.kerb_principal.c_str());
| ^~~~~~~~~~~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:52:9: error: 'hdfsBuilderSetKerbTicketCachePath' was not declared in this scope
52 | hdfsBuilderSetKerbTicketCachePath(hdfs_builder,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:57:9: error: 'hdfsBuilderSetToken' was not declared in this scope
57 | hdfsBuilderSetToken(hdfs_builder, _hdfs_params.token.c_str());
| ^~~~~~~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:62:13: error: 'hdfsBuilderConfSetStr' was not declared in this scope
62 | hdfsBuilderConfSetStr(hdfs_builder, conf.key.c_str(), conf.value.c_str());
| ^~~~~~~~~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:65:5: error: '_hdfs_fs' was not declared in this scope
65 | _hdfs_fs = hdfsBuilderConnect(hdfs_builder);
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:65:16: error: 'hdfsBuilderConnect' was not declared in this scope
65 | _hdfs_fs = hdfsBuilderConnect(hdfs_builder);
| ^~~~~~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In member function 'virtual doris::Status doris::HdfsFileReader::open()':
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:79:5: error: '_hdfs_file' was not declared in this scope
79 | _hdfs_file = hdfsOpenFile(_hdfs_fs, _path.c_str(), O_RDONLY, 0, 0, 0);
| ^~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:79:31: error: '_hdfs_fs' was not declared in this scope
79 | _hdfs_file = hdfsOpenFile(_hdfs_fs, _path.c_str(), O_RDONLY, 0, 0, 0);
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:79:56: error: 'O_RDONLY' was not declared in this scope
79 | _hdfs_file = hdfsOpenFile(_hdfs_fs, _path.c_str(), O_RDONLY, 0, 0, 0);
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:79:18: error: 'hdfsOpenFile' was not declared in this scope
79 | _hdfs_file = hdfsOpenFile(_hdfs_fs, _path.c_str(), O_RDONLY, 0, 0, 0);
| ^~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In member function 'virtual void doris::HdfsFileReader::close()':
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:91:13: error: '_hdfs_file' was not declared in this scope
91 | if (_hdfs_file != nullptr && _hdfs_fs != nullptr) {
| ^~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:91:38: error: '_hdfs_fs' was not declared in this scope
91 | if (_hdfs_file != nullptr && _hdfs_fs != nullptr) {
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:97:13: error: 'hdfsCloseFile' was not declared in this scope
97 | hdfsCloseFile(_hdfs_fs, _hdfs_file);
| ^~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:99:13: error: '_hdfs_fs' was not declared in this scope
99 | if (_hdfs_fs != nullptr) {
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:101:13: error: 'hdfsDisconnect' was not declared in this scope
101 | hdfsDisconnect(_hdfs_fs);
| ^~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:104:5: error: '_hdfs_file' was not declared in this scope
104 | _hdfs_file = nullptr;
| ^~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:105:5: error: '_hdfs_fs' was not declared in this scope
105 | _hdfs_fs = nullptr;
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In member function 'virtual bool doris::HdfsFileReader::closed()':
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:109:12: error: '_hdfs_file' was not declared in this scope
109 | return _hdfs_file == nullptr || _hdfs_fs == nullptr;
| ^~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:109:37: error: '_hdfs_fs' was not declared in this scope
109 | return _hdfs_file == nullptr || _hdfs_fs == nullptr;
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In member function 'virtual doris::Status doris::HdfsFileReader::readat(int64_t, int64_t, int64_t*, void*)':
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:138:28: error: '_hdfs_fs' was not declared in this scope
138 | int ret = hdfsSeek(_hdfs_fs, _hdfs_file, position);
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:138:38: error: '_hdfs_file' was not declared in this scope
138 | int ret = hdfsSeek(_hdfs_fs, _hdfs_file, position);
| ^~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:138:19: error: 'hdfsSeek' was not declared in this scope; did you mean 'fseek'?
138 | int ret = hdfsSeek(_hdfs_fs, _hdfs_file, position);
| ^~~~~~~~
| fseek
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:146:28: error: '_hdfs_fs' was not declared in this scope
146 | *bytes_read = hdfsRead(_hdfs_fs, _hdfs_file, out, nbytes);
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:146:38: error: '_hdfs_file' was not declared in this scope
146 | *bytes_read = hdfsRead(_hdfs_fs, _hdfs_file, out, nbytes);
| ^~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:146:19: error: 'hdfsRead' was not declared in this scope
146 | *bytes_read = hdfsRead(_hdfs_fs, _hdfs_file, out, nbytes);
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In member function 'virtual int64_t doris::HdfsFileReader::size()':
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:159:13: error: '_hdfs_fs' was not declared in this scope
159 | if (_hdfs_fs == nullptr) {
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:165:9: error: 'hdfsFileInfo' was not declared in this scope
165 | hdfsFileInfo* file_info = hdfsGetPathInfo(_hdfs_fs, _path.c_str());
| ^~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:165:23: error: 'file_info' was not declared in this scope; did you mean 'fileno'?
165 | hdfsFileInfo* file_info = hdfsGetPathInfo(_hdfs_fs, _path.c_str());
| ^~~~~~~~~
| fileno
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:165:51: error: '_hdfs_fs' was not declared in this scope
165 | hdfsFileInfo* file_info = hdfsGetPathInfo(_hdfs_fs, _path.c_str());
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:165:35: error: 'hdfsGetPathInfo' was not declared in this scope
165 | hdfsFileInfo* file_info = hdfsGetPathInfo(_hdfs_fs, _path.c_str());
| ^~~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:172:9: error: 'hdfsFreeFileInfo' was not declared in this scope
172 | hdfsFreeFileInfo(file_info, 1);
| ^~~~~~~~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In member function 'virtual doris::Status doris::HdfsFileReader::seek(int64_t)':
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:181:24: error: '_hdfs_fs' was not declared in this scope
181 | int res = hdfsSeek(_hdfs_fs, _hdfs_file, position);
| ^~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:181:34: error: '_hdfs_file' was not declared in this scope
181 | int res = hdfsSeek(_hdfs_fs, _hdfs_file, position);
| ^~~~~~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:181:15: error: 'hdfsSeek' was not declared in this scope; did you mean 'fseek'?
181 | int res = hdfsSeek(_hdfs_fs, _hdfs_file, position);
| ^~~~~~~~
| fseek
In file included from /opt/build_doris/lastest/incubator-doris/be/src/exec/parquet_scanner.cpp:46:
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.h:57:5: error: 'hdfsFS' does not name a type
57 | hdfsFS _hdfs_fs;
| ^~~~~~
/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.h:58:5: error: 'hdfsFile' does not name a type
58 | hdfsFile _hdfs_file;
| ^~~~~~~~
麻烦给看下什么原因?
Re:编译doris最新版本问题
Posted by 陈明雨 <mo...@163.com>.
You need to download the latest doris-dev image 1.3.1
--
此致!Best Regards
陈明雨 Mingyu Chen
Email:
morningman@163.com;
morningman.cmy@gmail.com
At 2021-10-15 09:27:54, "fengbaoli@uce.cn" <fe...@uce.cn> wrote:
>hello:
> 今天编译doris,当编译到be的时候,出现以下错误:
>In file included from /opt/build_doris/lastest/incubator-doris/be/src/exec/broker_scanner.cpp:44:
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.h:57:5: error: 'hdfsFS' does not name a type
> 57 | hdfsFS _hdfs_fs;
> | ^~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.h:58:5: error: 'hdfsFile' does not name a type
> 58 | hdfsFile _hdfs_file;
> | ^~~~~~~~
>In file included from /opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:18:
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.h:52:5: error: 'hdfsFS' does not name a type
> 52 | hdfsFS _hdfs_fs = nullptr;
> | ^~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.h:53:5: error: 'hdfsFile' does not name a type
> 53 | hdfsFile _hdfs_file = nullptr;
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp: In constructor 'doris::HDFSWriter::HDFSWriter(std::map<std::basic_string<char>, std::basic_string<char> >&, const string&)':
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:32:11: error: class 'doris::HDFSWriter' does not have any field named '_hdfs_fs'
> 32 | _hdfs_fs(nullptr) {
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp: In member function 'virtual doris::Status doris::HDFSWriter::open()':
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:42:9: error: '_hdfs_fs' was not declared in this scope
> 42 | if (_hdfs_fs == nullptr) {
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:45:29: error: '_hdfs_fs' was not declared in this scope
> 45 | int exists = hdfsExists(_hdfs_fs, _path.c_str());
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:45:18: error: 'hdfsExists' was not declared in this scope
> 45 | int exists = hdfsExists(_hdfs_fs, _path.c_str());
> | ^~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:51:5: error: '_hdfs_file' was not declared in this scope
> 51 | _hdfs_file = hdfsOpenFile(_hdfs_fs, _path.c_str(), O_WRONLY, 0, 0, 0);
> | ^~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:51:56: error: 'O_WRONLY' was not declared in this scope
> 51 | _hdfs_file = hdfsOpenFile(_hdfs_fs, _path.c_str(), O_WRONLY, 0, 0, 0);
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:51:18: error: 'hdfsOpenFile' was not declared in this scope
> 51 | _hdfs_file = hdfsOpenFile(_hdfs_fs, _path.c_str(), O_WRONLY, 0, 0, 0);
> | ^~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp: In member function 'virtual doris::Status doris::HDFSWriter::write(const uint8_t*, size_t, size_t*)':
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:66:32: error: '_hdfs_fs' was not declared in this scope
> 66 | int32_t result = hdfsWrite(_hdfs_fs, _hdfs_file, buf, buf_len);
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:66:42: error: '_hdfs_file' was not declared in this scope
> 66 | int32_t result = hdfsWrite(_hdfs_fs, _hdfs_file, buf, buf_len);
> | ^~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:66:22: error: 'hdfsWrite' was not declared in this scope
> 66 | int32_t result = hdfsWrite(_hdfs_fs, _hdfs_file, buf, buf_len);
> | ^~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp: In member function 'virtual doris::Status doris::HDFSWriter::close()':
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:83:9: error: '_hdfs_fs' was not declared in this scope
> 83 | if (_hdfs_fs == nullptr) {
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:86:9: error: '_hdfs_file' was not declared in this scope
> 86 | if (_hdfs_file == nullptr) {
> | ^~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:88:24: error: '_hdfs_fs' was not declared in this scope
> 88 | hdfsDisconnect(_hdfs_fs);
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:88:9: error: 'hdfsDisconnect' was not declared in this scope
> 88 | hdfsDisconnect(_hdfs_fs);
> | ^~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:91:28: error: '_hdfs_fs' was not declared in this scope
> 91 | int result = hdfsFlush(_hdfs_fs, _hdfs_file);
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:91:38: error: '_hdfs_file' was not declared in this scope
> 91 | int result = hdfsFlush(_hdfs_fs, _hdfs_file);
> | ^~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:91:18: error: 'hdfsFlush' was not declared in this scope
> 91 | int result = hdfsFlush(_hdfs_fs, _hdfs_file);
> | ^~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:98:5: error: 'hdfsCloseFile' was not declared in this scope
> 98 | hdfsCloseFile(_hdfs_fs, _hdfs_file);
> | ^~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:99:5: error: 'hdfsDisconnect' was not declared in this scope
> 99 | hdfsDisconnect(_hdfs_fs);
> | ^~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp: In member function 'doris::Status doris::HDFSWriter::_connect()':
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:107:5: error: 'hdfsBuilder' was not declared in this scope
> 107 | hdfsBuilder* hdfs_builder = hdfsNewBuilder();
> | ^~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:107:18: error: 'hdfs_builder' was not declared in this scope
> 107 | hdfsBuilder* hdfs_builder = hdfsNewBuilder();
> | ^~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:107:33: error: 'hdfsNewBuilder' was not declared in this scope
> 107 | hdfsBuilder* hdfs_builder = hdfsNewBuilder();
> | ^~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:108:5: error: 'hdfsBuilderSetNameNode' was not declared in this scope
> 108 | hdfsBuilderSetNameNode(hdfs_builder, _namenode.c_str());
> | ^~~~~~~~~~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:111:9: error: 'hdfsBuilderSetUserName' was not declared in this scope
> 111 | hdfsBuilderSetUserName(hdfs_builder, _user.c_str());
> | ^~~~~~~~~~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:115:9: error: 'hdfsBuilderSetPrincipal' was not declared in this scope
> 115 | hdfsBuilderSetPrincipal(hdfs_builder, _kerb_principal.c_str());
> | ^~~~~~~~~~~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:118:9: error: 'hdfsBuilderSetKerbTicketCachePath' was not declared in this scope
> 118 | hdfsBuilderSetKerbTicketCachePath(hdfs_builder, _kerb_ticket_cache_path.c_str());
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:122:9: error: 'hdfsBuilderSetToken' was not declared in this scope
> 122 | hdfsBuilderSetToken(hdfs_builder, _token.c_str());
> | ^~~~~~~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:128:13: error: 'hdfsBuilderConfSetStr' was not declared in this scope
> 128 | hdfsBuilderConfSetStr(hdfs_builder, iter->first.c_str(), iter->second.c_str());
> | ^~~~~~~~~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:131:5: error: '_hdfs_fs' was not declared in this scope
> 131 | _hdfs_fs = hdfsBuilderConnect(hdfs_builder);
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_writer.cpp:131:16: error: 'hdfsBuilderConnect' was not declared in this scope
> 131 | _hdfs_fs = hdfsBuilderConnect(hdfs_builder);
> | ^~~~~~~~~~~~~~~~~~
>make[2]: *** [src/exec/CMakeFiles/Exec.dir/build.make:1224: src/exec/CMakeFiles/Exec.dir/hdfs_writer.cpp.o] Error 1
>make[2]: *** Waiting for unfinished jobs....
>In file included from /opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:17:
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.h:57:5: error: 'hdfsFS' does not name a type
> 57 | hdfsFS _hdfs_fs;
> | ^~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.h:58:5: error: 'hdfsFile' does not name a type
> 58 | hdfsFile _hdfs_file;
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In constructor 'doris::HdfsFileReader::HdfsFileReader(doris::THdfsParams, const string&, int64_t)':
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:31:11: error: class 'doris::HdfsFileReader' does not have any field named '_hdfs_fs'
> 31 | _hdfs_fs(nullptr),
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:32:11: error: class 'doris::HdfsFileReader' does not have any field named '_hdfs_file'
> 32 | _hdfs_file(nullptr) {
> | ^~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In member function 'doris::Status doris::HdfsFileReader::connect()':
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:41:5: error: 'hdfsBuilder' was not declared in this scope
> 41 | hdfsBuilder* hdfs_builder = hdfsNewBuilder();
> | ^~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:41:18: error: 'hdfs_builder' was not declared in this scope
> 41 | hdfsBuilder* hdfs_builder = hdfsNewBuilder();
> | ^~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:41:33: error: 'hdfsNewBuilder' was not declared in this scope
> 41 | hdfsBuilder* hdfs_builder = hdfsNewBuilder();
> | ^~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:42:5: error: 'hdfsBuilderSetNameNode' was not declared in this scope
> 42 | hdfsBuilderSetNameNode(hdfs_builder, _namenode.c_str());
> | ^~~~~~~~~~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:45:9: error: 'hdfsBuilderSetUserName' was not declared in this scope
> 45 | hdfsBuilderSetUserName(hdfs_builder, _hdfs_params.user.c_str());
> | ^~~~~~~~~~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:49:9: error: 'hdfsBuilderSetPrincipal' was not declared in this scope
> 49 | hdfsBuilderSetPrincipal(hdfs_builder, _hdfs_params.kerb_principal.c_str());
> | ^~~~~~~~~~~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:52:9: error: 'hdfsBuilderSetKerbTicketCachePath' was not declared in this scope
> 52 | hdfsBuilderSetKerbTicketCachePath(hdfs_builder,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:57:9: error: 'hdfsBuilderSetToken' was not declared in this scope
> 57 | hdfsBuilderSetToken(hdfs_builder, _hdfs_params.token.c_str());
> | ^~~~~~~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:62:13: error: 'hdfsBuilderConfSetStr' was not declared in this scope
> 62 | hdfsBuilderConfSetStr(hdfs_builder, conf.key.c_str(), conf.value.c_str());
> | ^~~~~~~~~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:65:5: error: '_hdfs_fs' was not declared in this scope
> 65 | _hdfs_fs = hdfsBuilderConnect(hdfs_builder);
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:65:16: error: 'hdfsBuilderConnect' was not declared in this scope
> 65 | _hdfs_fs = hdfsBuilderConnect(hdfs_builder);
> | ^~~~~~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In member function 'virtual doris::Status doris::HdfsFileReader::open()':
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:79:5: error: '_hdfs_file' was not declared in this scope
> 79 | _hdfs_file = hdfsOpenFile(_hdfs_fs, _path.c_str(), O_RDONLY, 0, 0, 0);
> | ^~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:79:31: error: '_hdfs_fs' was not declared in this scope
> 79 | _hdfs_file = hdfsOpenFile(_hdfs_fs, _path.c_str(), O_RDONLY, 0, 0, 0);
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:79:56: error: 'O_RDONLY' was not declared in this scope
> 79 | _hdfs_file = hdfsOpenFile(_hdfs_fs, _path.c_str(), O_RDONLY, 0, 0, 0);
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:79:18: error: 'hdfsOpenFile' was not declared in this scope
> 79 | _hdfs_file = hdfsOpenFile(_hdfs_fs, _path.c_str(), O_RDONLY, 0, 0, 0);
> | ^~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In member function 'virtual void doris::HdfsFileReader::close()':
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:91:13: error: '_hdfs_file' was not declared in this scope
> 91 | if (_hdfs_file != nullptr && _hdfs_fs != nullptr) {
> | ^~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:91:38: error: '_hdfs_fs' was not declared in this scope
> 91 | if (_hdfs_file != nullptr && _hdfs_fs != nullptr) {
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:97:13: error: 'hdfsCloseFile' was not declared in this scope
> 97 | hdfsCloseFile(_hdfs_fs, _hdfs_file);
> | ^~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:99:13: error: '_hdfs_fs' was not declared in this scope
> 99 | if (_hdfs_fs != nullptr) {
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:101:13: error: 'hdfsDisconnect' was not declared in this scope
> 101 | hdfsDisconnect(_hdfs_fs);
> | ^~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:104:5: error: '_hdfs_file' was not declared in this scope
> 104 | _hdfs_file = nullptr;
> | ^~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:105:5: error: '_hdfs_fs' was not declared in this scope
> 105 | _hdfs_fs = nullptr;
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In member function 'virtual bool doris::HdfsFileReader::closed()':
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:109:12: error: '_hdfs_file' was not declared in this scope
> 109 | return _hdfs_file == nullptr || _hdfs_fs == nullptr;
> | ^~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:109:37: error: '_hdfs_fs' was not declared in this scope
> 109 | return _hdfs_file == nullptr || _hdfs_fs == nullptr;
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In member function 'virtual doris::Status doris::HdfsFileReader::readat(int64_t, int64_t, int64_t*, void*)':
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:138:28: error: '_hdfs_fs' was not declared in this scope
> 138 | int ret = hdfsSeek(_hdfs_fs, _hdfs_file, position);
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:138:38: error: '_hdfs_file' was not declared in this scope
> 138 | int ret = hdfsSeek(_hdfs_fs, _hdfs_file, position);
> | ^~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:138:19: error: 'hdfsSeek' was not declared in this scope; did you mean 'fseek'?
> 138 | int ret = hdfsSeek(_hdfs_fs, _hdfs_file, position);
> | ^~~~~~~~
> | fseek
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:146:28: error: '_hdfs_fs' was not declared in this scope
> 146 | *bytes_read = hdfsRead(_hdfs_fs, _hdfs_file, out, nbytes);
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:146:38: error: '_hdfs_file' was not declared in this scope
> 146 | *bytes_read = hdfsRead(_hdfs_fs, _hdfs_file, out, nbytes);
> | ^~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:146:19: error: 'hdfsRead' was not declared in this scope
> 146 | *bytes_read = hdfsRead(_hdfs_fs, _hdfs_file, out, nbytes);
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In member function 'virtual int64_t doris::HdfsFileReader::size()':
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:159:13: error: '_hdfs_fs' was not declared in this scope
> 159 | if (_hdfs_fs == nullptr) {
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:165:9: error: 'hdfsFileInfo' was not declared in this scope
> 165 | hdfsFileInfo* file_info = hdfsGetPathInfo(_hdfs_fs, _path.c_str());
> | ^~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:165:23: error: 'file_info' was not declared in this scope; did you mean 'fileno'?
> 165 | hdfsFileInfo* file_info = hdfsGetPathInfo(_hdfs_fs, _path.c_str());
> | ^~~~~~~~~
> | fileno
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:165:51: error: '_hdfs_fs' was not declared in this scope
> 165 | hdfsFileInfo* file_info = hdfsGetPathInfo(_hdfs_fs, _path.c_str());
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:165:35: error: 'hdfsGetPathInfo' was not declared in this scope
> 165 | hdfsFileInfo* file_info = hdfsGetPathInfo(_hdfs_fs, _path.c_str());
> | ^~~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:172:9: error: 'hdfsFreeFileInfo' was not declared in this scope
> 172 | hdfsFreeFileInfo(file_info, 1);
> | ^~~~~~~~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp: In member function 'virtual doris::Status doris::HdfsFileReader::seek(int64_t)':
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:181:24: error: '_hdfs_fs' was not declared in this scope
> 181 | int res = hdfsSeek(_hdfs_fs, _hdfs_file, position);
> | ^~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:181:34: error: '_hdfs_file' was not declared in this scope
> 181 | int res = hdfsSeek(_hdfs_fs, _hdfs_file, position);
> | ^~~~~~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.cpp:181:15: error: 'hdfsSeek' was not declared in this scope; did you mean 'fseek'?
> 181 | int res = hdfsSeek(_hdfs_fs, _hdfs_file, position);
> | ^~~~~~~~
> | fseek
>In file included from /opt/build_doris/lastest/incubator-doris/be/src/exec/parquet_scanner.cpp:46:
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.h:57:5: error: 'hdfsFS' does not name a type
> 57 | hdfsFS _hdfs_fs;
> | ^~~~~~
>/opt/build_doris/lastest/incubator-doris/be/src/exec/hdfs_file_reader.h:58:5: error: 'hdfsFile' does not name a type
> 58 | hdfsFile _hdfs_file;
> | ^~~~~~~~
> 麻烦给看下什么原因?
>
>
>
>