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

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.6.1, 0.6.2
    • Fix Version/s: 0.6.1
    • Component/s: front-end
    • Labels:
    • Environment:

      HDP 2.5

    • Flags:
      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

            • Assignee:
              Unassigned
              Reporter:
              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