hive脚本文件未找到异常

时间:2016-05-09 02:54:06

标签: shell hadoop hive

我在命令文件下运行在我的本地目录中,但是在运行文件时我遇到了以下错误。

[hdfs@ip-xxx-xxx-xx-xx scripts]$ ls -lrt
total 28
-rwxrwxrwx. 1 root root    17 Apr  1 15:53 hive.hive  
-rwxrwxrwx  1 hdfs hadoop  88 May  7 11:53 shell_fun  
-rwxrwxrwx  1 hdfs hadoop 262 May  7 12:23 first_hive  
-rwxrwxrwx  1 root root    88 May  7 16:59 311_cust_shell  
-rwxrwxrwx  1 root root   822 May  8 20:29 script_1  
-rw-r--r--  1 hdfs hadoop  31 May  8 20:30 script_1.log  
**-rwxrwxrwx  1 hdfs hdfs    64 May  8 22:07 **hql2.sql*** 

[hdfs@ip-xxx-xxx-xx-xx scripts]$ hive -f hql2.sql
WARNING: Use "yarn jar" to launch YARN applications.

Logging initialized using configuration in file:/etc/hive/2.3.4.0-3485/0/hive-log4j.properties Could not open input file for reading.  
(File file:/home/ec2-user/scripts/hive/scripts/hql2.sql does not exist)
[hdfs@ip-xxx-xxx-xx-xx scripts]$

0 个答案:

没有答案