Search code examples
hiveimpala

Impala Connection error


I am trying to run the below impala command in my cloudera cluster

impala-shell  -i connect 10.223.121.11:21000 -d prod_db -f /home/cloudera/views/a.hql

but I get error as

 Error, could not parse arguments "10.223.121.11:21000"

Could some one help me on this?


Solution

  • Flag -i should be defined as: -i hostname or --impalad=hostname (without connect)

    command connect should be used within impala-shell Connecting to impalad through impala-shell

    The default port of 21000 is assumed unless you provide another value.

    So this should works:

    impala-shell --impalad=10.223.121.11 -d prod_db -f /home/cloudera/views/a.hql