Impala查询报错

版权声明:原创文章,欢迎转载,转载请注明出处 https://blog.csdn.net/zhangshenghang/article/details/82835933
[test:21000] default> select * from tt_user where key like '1%' limit 1;
Query: select * from tt_user where key like '1%' limit 1
Query submitted at: 2018-09-25 10:47:53 (Coordinator: http://test:25000)
ERROR: AnalysisException: Failed to evaluate expr: 1
CAUSED BY: InternalException: Memory limit exceeded: Error occurred on backend fwqzx002.zh:22000 by fragment 0:0
Memory left in process limit: -3.52 MB
Query(a74236e3a91ac5c5:999aaa4100000000): Total=0 Peak=0
  <unnamed>: Total=0 Peak=0Process: memory limit exceeded. Limit=256.00 MB Total=259.52 MB Peak=299.01 MB
  Buffer Pool: Free Buffers: Total=0
  Buffer Pool: Clean Pages: Total=0
  Buffer Pool: Unused Reservation: Total=0
  TCMalloc Overhead: Total=21.67 MB
  RequestPool=fe-eval-exprs: Total=0 Peak=0
    Query(a74236e3a91ac5c5:999aaa4100000000): Total=0 Peak=0
  RequestPool=root.zhonghong: Total=0 Peak=111.00 KB
  Untracked Memory: Total=237.85 MB

原因:内存限制,导致异常 

修改内存限制为-1(生产环境不可设置为-1,根据业务实际情况进行调整)

随后启动impala,发现启动impala-daemon又报错,查看该文件

Redirecting stderr to /var/log/impalad/impalad.ERROR

内容为

[root@test~]# cat /var/log/impalad/impalad.ERROR
Log file created at: 2018/09/25 10:56:58
Running on machine: test
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
E0925 10:56:58.523322  8942 logging.cc:121] stderr will be logged to this file.
F0925 10:57:00.543490  8942 impalad-main.cc:73] The process memory limit (--mem_limit) must be a positive bytes value or percentage: -1
. Impalad exiting.
*** Check failure stack trace: ***
    @          0x22be89d  google::LogMessage::Fail()
    @          0x22c0142  google::LogMessage::SendToLog()
    @          0x22be277  google::LogMessage::Flush()
    @          0x22c183e  google::LogMessageFatal::~LogMessageFatal()
    @           0xda7b7c  ImpaladMain()
    @           0x969714  main
    @     0x7f04d2094445  __libc_start_main
    @           0x9b20d1  (unknown)
Picked up JAVA_TOOL_OPTIONS: 
Wrote minidump to /var/log/impala-minidumps/impalad/4aaa68db-7340-45f3-e57aeb98-428c1f14.dmp

提示不能设置为-1,什么鬼。

设置为零吧(为空),让Impala自行选择吧。启动服务成功。

猜你喜欢

转载自blog.csdn.net/zhangshenghang/article/details/82835933