[ https://issues.apache.org/jira/browse/AMBARI-16266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15284748#comment-15284748 ]
Hudson commented on AMBARI-16266: --------------------------------- FAILURE: Integrated in Ambari-trunk-Commit #4849 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4849/]) AMBARI-16266. [Hive View]Upload Table- Error on uploading csv with 1 row (pallav.kul: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c431ef36a22e1daf14671885122c02092142d04e]) * contrib/views/hive/src/main/resources/ui/hive-web/app/controllers/upload-table.js * contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/uploads/parsers/ParseOptions.java * contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/uploads/UploadService.java * contrib/views/hive/src/test/java/org/apache/ambari/view/hive/resources/upload/DataParserJSONTest.java * contrib/views/hive/src/main/resources/ui/hive-web/app/templates/upload-table.hbs * contrib/views/hive/src/test/java/org/apache/ambari/view/hive/resources/upload/DataParserXMLTest.java * contrib/views/hive/src/test/java/org/apache/ambari/view/hive/resources/upload/DataParserCSVTest.java * contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/uploads/TableInput.java * contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/uploads/parsers/Parser.java * contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/uploads/UploadFromHdfsInput.java > Upload Table- Error on uploading csv with 1 row > ----------------------------------------------- > > Key: AMBARI-16266 > URL: https://issues.apache.org/jira/browse/AMBARI-16266 > Project: Ambari > Issue Type: Bug > Components: ambari-views > Affects Versions: 2.4.0 > Reporter: Nitiraj Singh Rathore > Assignee: Nitiraj Singh Rathore > Fix For: 2.4.0 > > Attachments: AMBARI-16266_trunk.patch, AMBARI-16266_trunk_2.patch, > AMBARI-16266_trunk_3.patch > > > 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) -- This message was sent by Atlassian JIRA (v6.3.4#6332)