{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/860","repository_url":"https://api.github.com/repos/apache/incubator-zeppelin","labels_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/860/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/860/comments","events_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/860/events","html_url":"https://github.com/apache/incubator-zeppelin/pull/860","id":151493593,"number":860,"title":"[ZEPPELIN-828] Use individual user credentials for data source authentication","user":{"login":"prasadwagle","id":870829,"avatar_url":"https://avatars.githubusercontent.com/u/870829?v=3","gravatar_id":"","url":"https://api.github.com/users/prasadwagle","html_url":"https://github.com/prasadwagle","followers_url":"https://api.github.com/users/prasadwagle/followers","following_url":"https://api.github.com/users/prasadwagle/following{/other_user}","gists_url":"https://api.github.com/users/prasadwagle/gists{/gist_id}","starred_url":"https://api.github.com/users/prasadwagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasadwagle/subscriptions","organizations_url":"https://api.github.com/users/prasadwagle/orgs","repos_url":"https://api.github.com/users/prasadwagle/repos","events_url":"https://api.github.com/users/prasadwagle/events{/privacy}","received_events_url":"https://api.github.com/users/prasadwagle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2016-04-27T21:18:32Z","updated_at":"2016-06-01T19:27:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/860","html_url":"https://github.com/apache/incubator-zeppelin/pull/860","diff_url":"https://github.com/apache/incubator-zeppelin/pull/860.diff","patch_url":"https://github.com/apache/incubator-zeppelin/pull/860.patch"},"body":"### What is this PR for?\r\nThe purpose of this pull request is to allow users to use their own credentials to authenticate with data sources.\r\nIt contains the following:\r\n- web UI and rest API to let users input their credentials\r\n- changes to AuthenticationInfo to add data source credentials\r\n- changes to Paragraph to set data source credentials in AuthenticationInfo\r\n- changes to HiveInterpreter to use the user credentials and simplification to use a new connection for every query. We made this change since we found an issue with closed vertica connections. Since we are using HiveInterpreter for analytics, the cost of creating a new connection is small compared to query execution. We don't have to merge this change into master.\r\n\r\n### What type of PR is it?\r\nFeature\r\n\r\n### Todos\r\n* [x] - Save user credentials in a file\r\n* [x] - Do not persist AuthenticationInfo in paragraph since it contains sensitive information\r\n* [ ] - Add tests\r\n* [ ] - Add documentation\r\n\r\n### What is the Jira issue?\r\n[ZEPPELIN-828] (https://issues.apache.org/jira/browse/ZEPPELIN-828)\r\n\r\n### How should this be tested?\r\n1. In conf/shiro.ini, use /** = authc\r\n1. Login to Zeppelin\r\n2. Enter credentials for a data source\r\n3. Check if the interpreter is using the correct credentials\r\n\r\n### Screenshots (if appropriate)\r\nhttps://gfycat.com/LiquidGentleKatydid\r\n\r\n### Questions:\r\n* Does this needs documentation? Yes.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/comments/223098746","html_url":"https://github.com/apache/incubator-zeppelin/pull/860#issuecomment-223098746","issue_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/860","id":223098746,"user":{"login":"prasadwagle","id":870829,"avatar_url":"https://avatars.githubusercontent.com/u/870829?v=3","gravatar_id":"","url":"https://api.github.com/users/prasadwagle","html_url":"https://github.com/prasadwagle","followers_url":"https://api.github.com/users/prasadwagle/followers","following_url":"https://api.github.com/users/prasadwagle/following{/other_user}","gists_url":"https://api.github.com/users/prasadwagle/gists{/gist_id}","starred_url":"https://api.github.com/users/prasadwagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasadwagle/subscriptions","organizations_url":"https://api.github.com/users/prasadwagle/orgs","repos_url":"https://api.github.com/users/prasadwagle/repos","events_url":"https://api.github.com/users/prasadwagle/events{/privacy}","received_events_url":"https://api.github.com/users/prasadwagle/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T19:27:07Z","updated_at":"2016-06-01T19:27:07Z","body":"@bzz I rebased off the latest master and got the error below. Should I create a new jira issue or is this a duplicate?\r\n\r\nhttps://travis-ci.org/apache/incubator-zeppelin/jobs/134535308\r\n\r\n18:38:26,926 ERROR org.apache.zeppelin.AbstractZeppelinIT:153 - Exception in ZeppelinIT while testSparkInterpreterDependencyLoading\r\norg.openqa.selenium.NoSuchElementException: Unable to locate element: {\"method\":\"xpath\",\"selector\":\"//div[@id='spark']//form//button[1]\"}\r\nCommand duration or timeout: 30.08 seconds\r\n...\r\ntestSparkInterpreterDependencyLoading(org.apache.zeppelin.integration.ZeppelinIT)  Time elapsed: 82.819 sec  <<< ERROR!\r\norg.openqa.selenium.NoSuchElementException: Unable to locate element: {\"method\":\"xpath\",\"selector\":\"//div[@id='spark']//form//button[1]\"}\r\nCommand duration or timeout: 30.08 seconds\r\n...\r\nTests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 109.101 sec <<< FAILURE! - in org.apache.zeppelin.integration.ZeppelinIT\r\ntestSparkInterpreterDependencyLoading(org.apache.zeppelin.integration.ZeppelinIT)  Time elapsed: 82.819 sec  <<< ERROR!\r\norg.openqa.selenium.NoSuchElementException: Unable to locate element: {\"method\":\"xpath\",\"selector\":\"//div[@id='spark']//form//button[1]\"}\r\nCommand duration or timeout: 30.08 seconds\r\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\r\n\r\n...\r\nResults :\r\n\r\nTests in error:\r\n  ZeppelinIT.testSparkInterpreterDependencyLoading:243 Â» NoSuchElement Unable to...\r\n\r\nTests run: 14, Failures: 0, Errors: 1, Skipped: 0"}}
{"actor":{"display_login":"prasadwagle"}}