Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-16266

Upload Table- Error on uploading csv with 1 row

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • ambari-views
    • None

    Description

      Exception on uploading csv with 1 row
      First row is considered as header by default.

      =========================================================
      28 Apr 2016 06:44:35,001 INFO qtp-ambari-client-20554 BaseService:360 - isFirstRowHeader : true, inputFileType : CSV
      28 Apr 2016 06:44:35,003 ERROR qtp-ambari-client-20554 BaseService:112 - Exception occurred while generating preview for local file
      java.util.NoSuchElementException: No rows in the file.
      at org.apache.ambari.view.hive.resources.uploads.parsers.Parser.parsePreview(Parser.java:108)
      at org.apache.ambari.view.hive.resources.uploads.parsers.DataParser.parsePreview(DataParser.java:55)
      at org.apache.ambari.view.hive.resources.uploads.UploadService.generatePreview(UploadService.java:364)
      at org.apache.ambari.view.hive.resources.uploads.UploadService.uploadForPreview(UploadService.java:109)
      at sun.reflect.GeneratedMethodAccessor1179.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
      at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
      at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
      at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

      Attachments

        1. AMBARI-16266_trunk_3.patch
          36 kB
          Nitiraj Singh Rathore
        2. AMBARI-16266_trunk_2.patch
          29 kB
          Nitiraj Singh Rathore
        3. AMBARI-16266_trunk.patch
          28 kB
          Nitiraj Singh Rathore

        Issue Links

          Activity

            People

              nitiraj.rathore Nitiraj Singh Rathore
              nitiraj.rathore Nitiraj Singh Rathore
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: