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

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

    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

          People

            Unassigned Unassigned
            Narasimmavarman Narasimma varman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

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