I try to connect the master using slave machine and do some operation on table by python, but i get error when i invoke the interface Client.table().below the errror text:
Traceback (most recent call last): File "/home/thz/python_runtime/nandu-operation/airflow/rqdata/rq_data_day.py", line 52, in <module> kudu_import.table_init('impala::default.rq_debt_day') File "/home/thz/python_runtime/nandu-operation/airflow/rqdata/kudu_import.py", line 17, in table_init _table=_client.table(Table_name) File "kudu/client.pyx", line 446, in kudu.client.Client.table File "kudu/errors.pyx", line 62, in kudu.errors.check_status kudu.errors.KuduBadStatus: b'IO error: invalid RPC response, missing fields: schema.columns[4].type, schema.columns[5].type, schema.columns[6].type, schema.columns[7].type'
Here is my environment and version:
os: Linux version 3.10.0-957.21.3.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Tue Jun 18 16:35:19 UTC 2019
kudu-python: 1.2.0
python: /opt/anaconda2/envs/py3/bin/python
kudu: kudu 1.7.0-cdh5.16.2
I think the cause is the version incompatible,so i update python client:
pip install kudu-python==1.7.0
But i get another error:
gcc -pthread -B /opt/anaconda2/envs/py3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include -I/opt/anaconda2/envs/py3/include/python3.7m -c kudu/client.cpp -o build/temp.linux-x86_64-3.7/kudu/client.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] kudu/client.cpp:657:30: fatal error: kudu/util/int128.h: No such file or directory #include "kudu/util/int128.h"
I totally have no idea now. Anyone knows the reason?