Skip to content

Instantly share code, notes, and snippets.

[2016-06-23 17:06:14,882] [ERROR] [0x7f0875ffb700] [Thread] Failed to parse response. Raw response: 0x7f0875ffa878 Errors: * Line 1, Column 1
Syntax error: value, object or array expected.
* Line 1, Column 1
A valid JSON document must be either an array or an object value.
016-06-22T20:24:31,588 WARN [hiveserver2-web-24]: servlet.ServletHandler (:()) - /hiveserver2.jsp
java.lang.NullPointerException
at org.apache.hive.generated.hiveserver2.hiveserver2_jsp._jspService(hiveserver2_jsp.java:145)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:521)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
[error] /home/travis/build/etsy/sbt-checkstyle-plugin/src/main/scala/com/etsy/sbt/checkstyle/CheckstylePlugin.scala:40:2: Imports should be grouped together
[ERROR] src/main/java/com/etsy/statsd/profiler/server/ProfilerServer.java:[10,8] (imports) UnusedImports: Unused import - java.util.LinkedList.
[ERROR] src/main/java/com/etsy/statsd/profiler/server/RequestHandler.java:[13,8] (imports) UnusedImports: Unused import - java.util.LinkedList.
[ERROR] src/main/java/com/etsy/statsd/profiler/worker/ProfilerWorkerThread.java:[34,30] (whitespace) WhitespaceAfter: 'typecast' is not followed by whitespace.
val authorizationSignature = apiClient.getSignedUrl(OAuthMessage.POST, "https://services.answerscloud.com/services/clients/8202771/measures/8844153/respondentsextract")
@ajsquared
ajsquared / gist:c6f0caccce9fbffc5466
Created November 11, 2015 13:49
ForeSee API Error
<html><head><title>JBoss Web/7.3.1.Final-redhat-1 - JBWEB000064: Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-famil
y:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial
,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size
:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 401 - Invalid signature for signature method HMAC-SHA1</h1><HR size="1" noshade="
noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u>Invalid signature for signature method HMAC-SHA1</u></p><p><b>JBWEB000069: description</b> <u>JBWEB0001
info] [error] (compile:compileIncremental) sbt.InvalidScalaInstance: Scala instance doesn't exist or is invalid:
[info] [error] version 2.10.1, library jar: /home/travis/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.10.1.jar, compiler jar: /home/travis/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.10.1.jar
diff --git a/visualization/graphite_dump.py b/visualization/graphite_dump.py
index 71b20c5..0022bf0 100755
--- a/visualization/graphite_dump.py
+++ b/visualization/graphite_dump.py
@@ -40,13 +40,16 @@ def get_max_metric(host, metric, start, end):
url = 'http://%s/render' % host
json_url = requests.get(url, params=params)
json_results = json_url.json()
+ print json_results
return max([point[0] for point in json_results[0]['datapoints']])
@ajsquared
ajsquared / keybase.md
Created January 24, 2015 23:52
keybase.md

Keybase proof

I hereby claim:

  • I am ajsquared on github.
  • I am ajsquared (https://keybase.io/ajsquared) on keybase.
  • I have a public key whose fingerprint is RETU RN T HIS. PGP. GET_ FING ERPR INT( ); }

To claim this, I am signing this object:

Application application_1416843883012_0019 failed 2 times due to Error launching appattempt_1416843883012_0019_000002. Got exception: java.io.EOFException
at java.io.DataInputStream.readFully(DataInputStream.java:197)
at java.io.DataInputStream.readFully(DataInputStream.java:169)
at org.apache.hadoop.security.Credentials.readTokenStorageStream(Credentials.java:209)
at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.setupTokens(AMLauncher.java:226)
at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.createAMContainerLaunchContext(AMLauncher.java:198)
at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.launch(AMLauncher.java:108)
at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.run(AMLauncher.java:254)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)