You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by prabhjyotsingh <gi...@git.apache.org> on 2015/10/28 12:29:51 UTC

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

GitHub user prabhjyotsingh opened a pull request:

    https://github.com/apache/incubator-zeppelin/pull/374

    ZEPPELIN-371 : Import a notebook

    Import a notebook by either an external URL or uploading a valid JSON.
    
    <img width="429" alt="screen shot 2015-10-28 at 4 53 58 pm" src="https://cloud.githubusercontent.com/assets/674497/10787159/c15c0dd6-7d94-11e5-9617-29d2361d046b.png">
    
    <img width="1335" alt="screen shot 2015-10-28 at 4 56 30 pm" src="https://cloud.githubusercontent.com/assets/674497/10787208/046af056-7d95-11e5-99a5-3387fee393ef.png">
    
    <img width="1171" alt="screen shot 2015-10-28 at 4 56 55 pm" src="https://cloud.githubusercontent.com/assets/674497/10787209/046e05fc-7d95-11e5-813d-ec3856a5c207.png">
    
    
    <img width="1440" alt="screen shot 2015-10-28 at 4 55 29 pm" src="https://cloud.githubusercontent.com/assets/674497/10787158/c15be87e-7d94-11e5-9cde-39c0008a53bb.png">
    
    
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/prabhjyotsingh/incubator-zeppelin ZEPPELIN-371

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-zeppelin/pull/374.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #374
    
----
commit 5e299c042b03ec316c13327ff522603f96885071
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2015-10-28T11:20:18Z

    ZEPPELIN-371 : Import a notebook from either an external URL or uploading a vaild JSON

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh closed the pull request at:

    https://github.com/apache/incubator-zeppelin/pull/374


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/374#issuecomment-156788610
  
    Please take a look [NotebookServerTest](https://github.com/apache/incubator-zeppelin/blob/master/zeppelin-server/src/test/java/org/apache/zeppelin/socket/NotebookServerTest.java). Extending AbstractTestRestApi helped me to make ci build passes in #341.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/374#issuecomment-154769687
  
    I'm in the same CI test error in #341. Let me try to figure out.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/374#issuecomment-158596278
  
    Thanks @Leemoonsoo while importing any external library I'll keep this in mind for next time.
    
    Resolved build failure, ready for review.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/374#issuecomment-159457398
  
    @prabhjyotsingh thank you, great feature. 
    Huge :+1: for having a tests!
    
    This comes very handy with services like github or https://www.zeppelinhub.com/viewer


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/374#issuecomment-152695844
  
    Added test case for the same as well.
    
    CI fails in this PR. with following reason
    
        [32;1mThe command "mvn package -Pbuild-distr -Phadoop-2.3 -Ppyspark -B" exited with 0.[0m
        travis_time:start:088fd37b
        $ ./testing/startSparkCluster.sh 1.4.0 2.3
        SPARK_HOME is /home/travis/build/apache/incubator-zeppelin/spark-1.4.0-bin-hadoop2.3 
        
        
        No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.
    
        The build has been terminated


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/374#issuecomment-154339563
  
    The build is failing with following error
    
            06:21:48,776  INFO org.apache.zeppelin.rest.AbstractTestRestApi:226 - Test Zeppelin terminated.
        Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.115 sec <<< FAILURE! - in org.apache.zeppelin.rest.ZeppelinRestApiTest
        org.apache.zeppelin.rest.ZeppelinRestApiTest  Time elapsed: 4.115 sec  <<< ERROR!
        java.lang.NullPointerException: null
        at org.apache.zeppelin.rest.AbstractTestRestApi.startUp(AbstractTestRestApi.java:123)
        at org.apache.zeppelin.rest.ZeppelinRestApiTest.init(ZeppelinRestApiTest.java:57)
    
        Running org.apache.zeppelin.security.SecurityUtilsTest
        Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec - in org.apache.zeppelin.security.SecurityUtilsTest
        Running org.apache.zeppelin.server.CorsFilterTest
        Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.29 sec - in org.apache.zeppelin.server.CorsFilterTest
        06:21:49,112  INFO org.apache.zeppelin.server.ZeppelinServer:112 - Shutting down Zeppelin Server ...
        06:21:49,112  INFO org.apache.zeppelin.server.ZeppelinServer:112 - Shutting down Zeppelin Server ...
        06:21:49,113  INFO org.apache.zeppelin.server.ZeppelinServer:118 - Bye
        06:21:49,113  INFO org.apache.zeppelin.server.ZeppelinServer:118 - Bye
    
        Results :
    
        Tests in error:
        ZeppelinSparkClusterTest.init:46->AbstractTestRestApi.startUp:123 » NullPointer
        ZeppelinRestApiTest.init:57->AbstractTestRestApi.startUp:123 » NullPointer
    
        Tests run: 16, Failures: 0, Errors: 2, Skipped: 0
    
        [INFO] ------------------------------------------------------------------------
        [INFO] Reactor Summary:
        [INFO]
        [INFO] Zeppelin ........................................... SUCCESS [ 10.558 s]
        [INFO] Zeppelin: Interpreter .............................. SUCCESS [01:19 min]
        [INFO] Zeppelin: Zengine .................................. SUCCESS [  4.987 s]
        [INFO] Zeppelin: Spark dependencies ....................... SUCCESS [ 32.026 s]
        [INFO] Zeppelin: Spark .................................... SUCCESS [01:20 min]
        [INFO] Zeppelin: Markdown interpreter ..................... SUCCESS [  0.700 s]
        [INFO] Zeppelin: Angular interpreter ...................... SUCCESS [  0.279 s]
        [INFO] Zeppelin: Shell interpreter ........................ SUCCESS [  0.356 s]
        [INFO] Zeppelin: Hive interpreter ......................... SUCCESS [  2.433 s]
        [INFO] Zeppelin: Apache Phoenix Interpreter ............... SUCCESS [ 10.156 s]
        [INFO] Zeppelin: PostgreSQL interpreter ................... SUCCESS [  1.127 s]
        [INFO] Zeppelin: Tajo interpreter ......................... SUCCESS [  1.565 s]
        [INFO] Zeppelin: Flink .................................... SUCCESS [ 18.759 s]
        [INFO] Zeppelin: Apache Ignite interpreter ................ SUCCESS [ 15.523 s]
        [INFO] Zeppelin: Kylin interpreter ........................ SUCCESS [  0.678 s]
        [INFO] Zeppelin: Lens interpreter ......................... SUCCESS [  3.232 s]
        [INFO] Zeppelin: Cassandra ................................ SUCCESS [ 39.078 s]
        [INFO] Zeppelin: web Application .......................... SUCCESS [ 37.655 s]
        [INFO] Zeppelin: Server ................................... FAILURE [ 15.121 s]
        [INFO] Zeppelin: Packaging distribution ................... SKIPPED
        [INFO] ------------------------------------------------------------------------
        [INFO] BUILD FAILURE
        [INFO] ------------------------------------------------------------------------
        [INFO] Total time: 05:55 min
        [INFO] Finished at: 2015-11-06T06:21:49+00:00
        [INFO] Final Memory: 66M/362M
        [INFO] ------------------------------------------------------------------------
        [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project zeppelin-server: There are test failures.
        [ERROR]
        [ERROR] Please refer to /home/travis/build/apache/incubator-zeppelin/zeppelin-server/target/surefire-reports for the individual test results.
        [ERROR] -> [Help 1]
        [ERROR]
        [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
        [ERROR] Re-run Maven using the -X switch to enable full debug logging.
        [ERROR]
        [ERROR] For more information about the errors and possible solutions, please read the following articles:
        [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
        [ERROR]
        [ERROR] After correcting the problems, you can resume the build with the command
        [ERROR]   mvn <goals> -rf :zeppelin-server
        travis_time:end:1b88a8e0:start=1446790550157092954,finish=1446790909997950807,duration=359840857853
        
        The command "mvn verify -Pusing-packaged-distr -Phadoop-2.3 -Ppyspark -B" exited with 1.
    
    
    
    My guess is, in AbstractTestRestApi:116 
    ZeppelinServer.notebook.getInterpreterFactory().get() is empty
    any pointers what would have gone wrong ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/374#issuecomment-158911316
  
    Merge if there're no more discussions


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/374#issuecomment-152422388
  
    Sure, I'll write a unit test case for this.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/374#issuecomment-152285675
  
    could we add test for this?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by prabhjyotsingh <gi...@git.apache.org>.
GitHub user prabhjyotsingh reopened a pull request:

    https://github.com/apache/incubator-zeppelin/pull/374

    ZEPPELIN-371 : Import a notebook

    Import a notebook by either an external URL or uploading a valid JSON.
    
    <img width="429" alt="screen shot 2015-10-28 at 4 53 58 pm" src="https://cloud.githubusercontent.com/assets/674497/10787159/c15c0dd6-7d94-11e5-9617-29d2361d046b.png">
    
    <img width="1335" alt="screen shot 2015-10-28 at 4 56 30 pm" src="https://cloud.githubusercontent.com/assets/674497/10787208/046af056-7d95-11e5-99a5-3387fee393ef.png">
    
    <img width="1171" alt="screen shot 2015-10-28 at 4 56 55 pm" src="https://cloud.githubusercontent.com/assets/674497/10787209/046e05fc-7d95-11e5-813d-ec3856a5c207.png">
    
    
    <img width="1440" alt="screen shot 2015-10-28 at 4 55 29 pm" src="https://cloud.githubusercontent.com/assets/674497/10787158/c15be87e-7d94-11e5-9cde-39c0008a53bb.png">
    
    
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/prabhjyotsingh/incubator-zeppelin ZEPPELIN-371

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-zeppelin/pull/374.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #374
    
----
commit 5e299c042b03ec316c13327ff522603f96885071
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2015-10-28T11:20:18Z

    ZEPPELIN-371 : Import a notebook from either an external URL or uploading a vaild JSON

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-zeppelin/pull/374


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh closed the pull request at:

    https://github.com/apache/incubator-zeppelin/pull/374


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/374#issuecomment-158629304
  
    Working nicely, Looks good to me.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/374#issuecomment-153029972
  
    Thanks @prabhjyotsingh for the nice feature. I manually tested and working well for me.
    CI failing is fixed by #380. Could you try rebase this branch?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/374#issuecomment-157643757
  
    Thanks @Leemoonsoo, have made relevant changes.
    
    now it fails for  "ZeppelinIT.testAngularDisplay:173->createNewNote:306 » Timeout Timed out after"
    
        -------------------------------------------------------
        T E S T S
        -------------------------------------------------------
        Running org.apache.zeppelin.ZeppelinIT
        Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 22.224 sec <<< FAILURE! - in org.apache.zeppelin.ZeppelinIT
        testAngularDisplay(org.apache.zeppelin.ZeppelinIT)  Time elapsed: 22.152 sec  <<< ERROR!
        org.openqa.selenium.TimeoutException: Timed out after 10 seconds waiting for visibility of element located by By.id: noteNameModal
        Build info: version: '2.44.0', revision: '76d78cf323ce037c5f92db6c1bba601c2ac43ad8', time: '2014-10-23 13:11:40'
        System info: host: 'testing-worker-linux-docker-095ed8f0-3208-linux-3', ip: '172.17.12.223', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-40-generic', java.version: '1.7.0_76'
        Session ID: e6ed0c8a-b983-40da-b950-09ead342ffe0
        Driver info: org.openqa.selenium.firefox.FirefoxDriver
        Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=31.0}]
            at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:79)
            at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:228)
            at org.apache.zeppelin.ZeppelinIT.createNewNote(ZeppelinIT.java:306)
            at org.apache.zeppelin.ZeppelinIT.testAngularDisplay(ZeppelinIT.java:173)
    
    
        Results :
    
        Tests in error:
          ZeppelinIT.testAngularDisplay:173->createNewNote:306 » Timeout Timed out after...
    
        Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
    
    
    
    
    Trying to debug, will update once finished.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-371 : Import a notebook

Posted by prabhjyotsingh <gi...@git.apache.org>.
GitHub user prabhjyotsingh reopened a pull request:

    https://github.com/apache/incubator-zeppelin/pull/374

    ZEPPELIN-371 : Import a notebook

    Import a notebook by either an external URL or uploading a valid JSON.
    
    <img width="429" alt="screen shot 2015-10-28 at 4 53 58 pm" src="https://cloud.githubusercontent.com/assets/674497/10787159/c15c0dd6-7d94-11e5-9617-29d2361d046b.png">
    
    <img width="1335" alt="screen shot 2015-10-28 at 4 56 30 pm" src="https://cloud.githubusercontent.com/assets/674497/10787208/046af056-7d95-11e5-99a5-3387fee393ef.png">
    
    <img width="1171" alt="screen shot 2015-10-28 at 4 56 55 pm" src="https://cloud.githubusercontent.com/assets/674497/10787209/046e05fc-7d95-11e5-813d-ec3856a5c207.png">
    
    
    <img width="1440" alt="screen shot 2015-10-28 at 4 55 29 pm" src="https://cloud.githubusercontent.com/assets/674497/10787158/c15be87e-7d94-11e5-9cde-39c0008a53bb.png">
    
    
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/prabhjyotsingh/incubator-zeppelin ZEPPELIN-371

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-zeppelin/pull/374.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #374
    
----
commit 0a9915704f13d8731bf2e78512a7421337c535d1
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2015-11-03T07:20:38Z

    ZEPPELIN-371 : Import a notebook from either an external

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---