Beeline showing error

select batch, gotJob, count(*) from student group by batch, gotJob order by batch;

This command works good in Hive cli but doesn’t work in beeline cli.

saying permission denied

Can you also tell me which server are you connecting the beeline with?