Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Internal Client Error for Treasure Data (td) results #601

Closed
adlux opened this Issue · 1 comment

2 participants

@adlux

I am able to run various treasure data queries through the td plugin for heroku but I cannot get back the results. I can initiate the queries, view the jobs in the logs, see the status of jobs, etc. but the results always come back with the internal client error. I am certain the data in the tables are fine as I am able to successfully export the tables to an s3 bucket through the heroku td plugin.

Here is the typical output, the error message and backtrace is always the same even as the command changes.

I am using rvm on OS X Mountain Lion. I have seen this Heroku::API error associated with many other plug-ins. I have already re-installed the toolset but I have not made many modifications to my PATH to change the load order. I have installed the heroku-api gem in rvm.

First Example

heroku td table:tail hit_log hit
! DEPRECATED: Heroku::Client#deprecate is deprecated, please use the heroku-api gem.
! DEPRECATED: More information available at https://github.com/heroku/heroku.rb
! DEPRECATED: Deprecated method called from /usr/local/heroku/lib/heroku/client.rb:129.
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new

Error:       uninitialized constant Heroku::API (NameError)
Backtrace:   /usr/local/heroku/lib/heroku/command.rb:213:in `rescue in run'
             /usr/local/heroku/lib/heroku/command.rb:259:in `run'
             /usr/local/heroku/lib/heroku/cli.rb:28:in `start'
             /usr/local/heroku/bin/heroku:24:in `<main>'

Command:     heroku td table:tail hit_log hit
Plugins:     heroku-td
Version:     heroku-toolbelt/2.32.11 (x86_64-darwin10.8.0) ruby/1.9.3

Second Example

heroku td query -w -d hit_log "select v['code'], count(1) from hit group by v['code']"
! DEPRECATED: Heroku::Client#deprecate is deprecated, please use the heroku-api gem.
! DEPRECATED: More information available at https://github.com/heroku/heroku.rb
! DEPRECATED: Deprecated method called from /usr/local/heroku/lib/heroku/client.rb:129.
Job 966055 is queued.
Use 'heroku td job:show 966055' to show the status.
queued...
started at 2012-10-13T23:36:48Z
Hive history file=/tmp/984/hive_job_log__2033958639.txt
Total MapReduce jobs = 1
Launching Job 1 out of 1
Number of reduce tasks not specified. Defaulting to jobconf value of: 4
In order to change the average load for a reducer (in bytes):
set hive.exec.reducers.bytes.per.reducer=
In order to limit the maximum number of reducers:
set hive.exec.reducers.max=
In order to set a constant number of reducers:
set mapred.reduce.tasks=
Starting Job = job_201209262127_28641, Tracking URL = http://ip-10-8-189-47.ec2.internal:50030/jobdetails.jsp?jobid=job_201209262127_28641
Kill Command = /usr/lib/hadoop/bin/hadoop job -Dmapred.job.tracker=10.8.189.47:8021 -kill job_201209262127_28641
2012-10-13 23:37:00,058 Stage-1 map = 0%, reduce = 0%
2012-10-13 23:37:03,107 Stage-1 map = 100%, reduce = 0%
2012-10-13 23:37:13,212 Stage-1 map = 100%, reduce = 25%
2012-10-13 23:37:21,288 Stage-1 map = 100%, reduce = 50%
2012-10-13 23:37:28,364 Stage-1 map = 100%, reduce = 75%
2012-10-13 23:37:36,440 Stage-1 map = 100%, reduce = 100%
finished at 2012-10-13T23:37:39Z
Ended Job = job_201209262127_28641
OK
MapReduce time taken: 44.552 seconds
Time taken: 44.693 seconds
Status : success
Result :
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new

Error:       uninitialized constant Heroku::API (NameError)
Backtrace:   /usr/local/heroku/lib/heroku/command.rb:213:in `rescue in run'
             /usr/local/heroku/lib/heroku/command.rb:259:in `run'
             /usr/local/heroku/lib/heroku/cli.rb:28:in `start'
             /usr/local/heroku/bin/heroku:24:in `<main>'

Command:     heroku td query -w -d hit_log "select v['code'], count(1) from hit group by v['code']"
Plugins:     heroku-td
Version:     heroku-toolbelt/2.32.11 (x86_64-darwin10.8.0) ruby/1.9.3
@wuputah
Owner

Hi- please report this issue at https://github.com/treasure-data/heroku-td/issues.

Thanks!

@wuputah wuputah closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.