2016-11-08 4 views
0

テーブルからcount(*)を選択しようとしていますが、ジョブを送信した後にスタックしています。 PFB詳細。Mapleduceジョブを起動していません。実行中にスタックしていません。

hive> select count(*) from txnrecords; 
WARNING: Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions. Consider using a different execution engine (i.e. spark, tez) or using Hive 1.X releases. 
Query ID = sambit_20161108115544_170f01cb-5825-4af1-8607-d25ceb84823b 
Total jobs = 1 
Launching Job 1 out of 1 
Number of reduce tasks determined at compile time: 1 
In order to change the average load for a reducer (in bytes): 
    set hive.exec.reducers.bytes.per.reducer=<number> 
In order to limit the maximum number of reducers: 
    set hive.exec.reducers.max=<number> 
In order to set a constant number of reducers: 
    set mapreduce.job.reduces=<number> 
Starting Job = job_1478581699153_0005, Tracking URL = http://localhost:8088/proxy/application_1478581699153_0005/ 
Kill Command = /home/sambit/hadoop-2.7.3/bin/hadoop job -kill job_1478581699153_0005 

注:は(txnrecordsから選択*;)以下のように正常に動作しています。

hive> select * from txnrecords; 
OK 
0 06-26-2011 4007024 40.33 Exercise & Fitness Cardio Machine Accessories Clarksville Tennessee credit 
1 06-26-2011 4006742 198.44 Exercise & Fitness Weightlifting Gloves Long Beach California credit 
2 06-26-2011 4009775 5.58 Exercise & Fitness Weightlifting Machine Accessories Anaheim California credit 
3 06-26-2011 4002199 198.19 Gymnastics Gymnastics Rings Milwaukee Wisconsin credit 
4 12-17-2011 4002613 98.81 Team Sports Field Hockey Nashville Tennessee credit 
5 12-17-2011 4007591 193.63 Outdoor Recreation Camping & Backpacking & Hiking Chicago Illinois credit 
6 12-17-2011 4002190 27.89 Puzzles Jigsaw Puzzles Charleston South Carolina credit 
7 12-17-2011 4002964 96.01 Outdoor Play Equipment Sandboxes Columbus Ohio credit 
8 12-18-2011 4007361 10.44 Winter Sports Snowmobiling Des Moines Iowa credit 
9 12-18-2011 4004798 152.46 Jumping Bungee Jumping St. Petersburg Florida cash 
10 12-18-2011 4004646 180.28 Outdoor Recreation Archery Reno Nevada cash 
NULL NULL NULL NULL NULL NULL NULL NULL NULL 
Time taken: 0.227 seconds, Fetched: 12 row(s) 

Queue Details

+0

これは糸構成の問題である可能性があります。このジョブを実行するのに十分なリソースがありません。 –

+0

トラッキングURL = http:// localhost:8088/proxy/application_1478581699153_0005 /にアクセスするには、ジョブが正しいJOB_QUEUEになっていることを確認します。 –

+0

@ SathiyanS ..それを設定する方法を教えていただけますか?ありがとう。 –

答えて

0

"SELECT * FROM" "SELECT COUNT(*)"、最後の1は、より多くのことを行い異なる動作します。だからこそこれを信じてはいけません。 私の経験では、この問題は、テーブルの列定義に予約されたキーワードを使用しているためです。コンテナのログに次のようなエラーメッセージがあるとします。ParseException。 Mike Ganの提案は、あなたが持つ最良の選択肢です。コンテナのログを取得するには、

yarn logs -applicationId <yourApplicationIdFromHive> 

を実行してください。

+0

私はその仕事の詳細を見てみると、次の "Total Allocated Containers:0"が得られます。これを解決するために何か提案してください。 –

+0

SELECT * FROM txnrecords ORDER BY <フィールドをここに追加>は機能しますか? – ozw1z5rd

関連する問題