Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-2118

java.lang.NumberFormatException: For input string: "latitude" anyone help me to resolve this issue

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.6.1, 0.6.2
    • 0.6.1
    • front-end
    • HDP 2.5

    • Important

    Description

      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)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            Narasimmavarman Narasimma varman

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment