You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "Narasimma varman (JIRA)" <ji...@apache.org> on 2017/02/15 11:14:41 UTC
[jira] [Created] (ZEPPELIN-2118) java.lang.NumberFormatException:
For input string: "latitude" anyone help me to resolve this issue
Narasimma varman created ZEPPELIN-2118:
------------------------------------------
Summary: java.lang.NumberFormatException: For input string: "latitude" anyone help me to resolve this issue
Key: ZEPPELIN-2118
URL: https://issues.apache.org/jira/browse/ZEPPELIN-2118
Project: Zeppelin
Issue Type: Bug
Components: front-end
Affects Versions: 0.6.2, 0.6.1
Environment: HDP 2.5
Reporter: Narasimma varman
Fix For: 0.6.1
val gson = new com.google.gson.Gson()
val bubbles = sqlContext.sql(s"""select * from social""").map(r=>
Map(
"city" -> r(0).toString,
"latitude" -> r(1).toString.toDouble,
"longitude" -> r(2).toString.toDouble
)
).collect.map(s=>scala.collection.JavaConversions.mapAsJavaMap(s))
val bubblesJson = gson.toJson(bubbles)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)