Added: incubator/zeppelin/site/assets/themes/zeppelin/css/starwars.css URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/css/starwars.css?rev=1650869&view=auto ============================================================================== --- incubator/zeppelin/site/assets/themes/zeppelin/css/starwars.css (added) +++ incubator/zeppelin/site/assets/themes/zeppelin/css/starwars.css Sun Jan 11 04:30:31 2015 @@ -0,0 +1,222 @@ +/* +** ALL CREDIT GOES TO +** Craig Buckler +** http://www.sitepoint.com/css3-starwars-scrolling-text/ +** +*/ + +@import url(http://fonts.googleapis.com/css?family=Droid+Sans:400,700); + +* { padding: 0; margin: 0; } + +body, html +{ + width: 100%; + height: 100%; + font-family: "Droid Sans", arial, verdana, sans-serif; + font-weight: 700; + color: #ff6; + background-color: #000; + overflow: hidden; +} + +p#start +{ + position: relative; + width: 16em; + font-size: 200%; + font-weight: 400; + margin: 20% auto; + color: #4ee; + opacity: 0; + z-index: 1; + -webkit-animation: intro 2s ease-out; + -moz-animation: intro 2s ease-out; + -ms-animation: intro 2s ease-out; + -o-animation: intro 2s ease-out; + animation: intro 2s ease-out; +} + +@-webkit-keyframes intro { + 0% { opacity: 1; } + 90% { opacity: 1; } + 100% { opacity: 0; } +} + +@-moz-keyframes intro { + 0% { opacity: 1; } + 90% { opacity: 1; } + 100% { opacity: 0; } +} + +@-ms-keyframes intro { + 0% { opacity: 1; } + 90% { opacity: 1; } + 100% { opacity: 0; } +} + +@-o-keyframes intro { + 0% { opacity: 1; } + 90% { opacity: 1; } + 100% { opacity: 0; } +} + +@keyframes intro { + 0% { opacity: 1; } + 90% { opacity: 1; } + 100% { opacity: 0; } +} + +h1 +{ + position: absolute; + width: 2.6em; + left: 50%; + top: 25%; + font-size: 10em; + text-align: center; + margin-left: -1.3em; + line-height: 0.8em; + letter-spacing: -0.05em; + color: #000; + text-shadow: -2px -2px 0 #ff6, 2px -2px 0 #ff6, -2px 2px 0 #ff6, 2px 2px 0 #ff6; + opacity: 0; + z-index: 1; + -webkit-animation: logo 5s ease-out 2.5s; + -moz-animation: logo 5s ease-out 2.5s; + -ms-animation: logo 5s ease-out 2.5s; + -o-animation: logo 5s ease-out 2.5s; + animation: logo 5s ease-out 2.5s; +} + +h1 sub +{ + display: block; + font-size: 0.3em; + letter-spacing: 0; + line-height: 0.8em; +} + +@-webkit-keyframes logo { + 0% { -webkit-transform: scale(1); opacity: 1; } + 50% { opacity: 1; } + 100% { -webkit-transform: scale(0.1); opacity: 0; } +} + +@-moz-keyframes logo { + 0% { -moz-transform: scale(1); opacity: 1; } + 50% { opacity: 1; } + 100% { -moz-transform: scale(0.1); opacity: 0; } +} + +@-ms-keyframes logo { + 0% { -ms-transform: scale(1); opacity: 1; } + 50% { opacity: 1; } + 100% { -ms-transform: scale(0.1); opacity: 0; } +} + +@-o-keyframes logo { + 0% { -o-transform: scale(1); opacity: 1; } + 50% { opacity: 1; } + 100% { -o-transform: scale(0.1); opacity: 0; } +} + +@keyframes logo { + 0% { transform: scale(1); opacity: 1; } + 50% { opacity: 1; } + 100% { transform: scale(0.1); opacity: 0; } +} + +/* the interesting 3D scrolling stuff */ +#titles +{ + position: absolute; + width: 18em; + height: 50em; + bottom: 0; + left: 50%; + margin-left: -9em; + font-size: 350%; + text-align: justify; + overflow: hidden; + -webkit-transform-origin: 50% 100%; + -moz-transform-origin: 50% 100%; + -ms-transform-origin: 50% 100%; + -o-transform-origin: 50% 100%; + transform-origin: 50% 100%; + -webkit-transform: perspective(300px) rotateX(25deg); + -moz-transform: perspective(300px) rotateX(25deg); + -ms-transform: perspective(300px) rotateX(25deg); + -o-transform: perspective(300px) rotateX(25deg); + transform: perspective(300px) rotateX(25deg); +} + +#titles:after +{ + position: absolute; + content: ' '; + left: 0; + right: 0; + top: 0; + bottom: 60%; + background-image: -webkit-linear-gradient(top, rgba(0,0,0,1) 0%, transparent 100%); + background-image: -moz-linear-gradient(top, rgba(0,0,0,1) 0%, transparent 100%); + background-image: -ms-linear-gradient(top, rgba(0,0,0,1) 0%, transparent 100%); + background-image: -o-linear-gradient(top, rgba(0,0,0,1) 0%, transparent 100%); + background-image: linear-gradient(top, rgba(0,0,0,1) 0%, transparent 100%); + pointer-events: none; +} + +#titles p +{ + text-align: justify; + margin: 0.8em 0; +} + +#titles p.center +{ + text-align: center; +} + +#titles a +{ + color: #ff6; + text-decoration: underline; +} + +#titlecontent +{ + position: absolute; + top: 100%; + -webkit-animation: scroll 100s linear 4s infinite; + -moz-animation: scroll 100s linear 4s infinite; + -ms-animation: scroll 100s linear 4s infinite; + -o-animation: scroll 100s linear 4s infinite; + animation: scroll 100s linear 4s infinite; +} + +/* animation */ +@-webkit-keyframes scroll { + 0% { top: 100%; } + 100% { top: -170%; } +} + +@-moz-keyframes scroll { + 0% { top: 100%; } + 100% { top: -170%; } +} + +@-ms-keyframes scroll { + 0% { top: 100%; } + 100% { top: -170%; } +} + +@-o-keyframes scroll { + 0% { top: 100%; } + 100% { top: -170%; } +} + +@keyframes scroll { + 0% { top: 100%; } + 100% { top: -170%; } +}
Added: incubator/zeppelin/site/assets/themes/zeppelin/css/style.css URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/css/style.css?rev=1650869&view=auto ============================================================================== --- incubator/zeppelin/site/assets/themes/zeppelin/css/style.css (added) +++ incubator/zeppelin/site/assets/themes/zeppelin/css/style.css Sun Jan 11 04:30:31 2015 @@ -0,0 +1,249 @@ +/* Move down content because we have a fixed navbar that is 50px tall */ +@import url(//fonts.googleapis.com/css?family=Patua+One); + +body { + padding-top: 50px; + padding-bottom: 20px; +} + +.jumbotron { + background-color: #3071a9; +} + +.navbar { + background-color:#3071a9; + border-bottom:0px; + height: 50px; +} + +.navbar-inverse .navbar-nav > li > a { + color: #ffffff; + background-color:#3071a9; +} + +.navbar-inverse .navbar-nav > li > a:hover, +.navbar-inverse .navbar-nav > li > a:focus { + text-decoration: underline; +} +.navbar-inverse .navbar-nav > li > a.active:hover, +.navbar-inverse .navbar-nav > li > a.active:focus { + text-decoration: none; + background-color:#123456; +} + +.navbar-inverse .navbar-nav > li > a.active { + background-color:#123456; +} + +.navbar-inverse .navbar-brand:hover, +.navbar-inverse .navbar-brand:focus { +} + +.navbar-inverse .navbar-brand { + color: #fff; + text-decoration: none; + font-size: 32px; +} + + +/* CUSTOMIZE THE CAROUSEL +-------------------------------------------------- */ + +/* Carousel base class */ +.carousel { + height: 200px; + margin-bottom: 10px; +} +/* Since positioning the image, we need to help out the caption */ +.carousel-caption { + z-index: 10; +} + +/* Declare heights because of positioning of img element */ +.carousel .item { + height: 300px; +} +.carousel-control { + background-image: none !important; +} + +.carousel-inner > .item > img { + position: absolute; + top: 0; + left: 0; + min-width: 100%; + height: 300px; +} +.carousel-indicators { + margin-top:30px; + margin-bottom:0px; +} +@media screen and (min-width: 768px) { + .carousel-indicators { + margin-bottom: -60px; + } + .carousel-caption { + padding-bottom: 60px; + } +} + + +.jumbotron h1, +.jumbotron p { + color: #fff; +} +.jumbotron .thumbnail { + margin-top: 0; +} +.jumbotron.small { + padding: 0 0 0 0; + color : #ffffff; +} +.jumbotron.small .title{ + float : left; + font-weight : bold; + font-size : 20px; + height : 30px; + margin-right: 20px; +} + +.jumbotron.small .subtitle{ + font-size : 14px; + height : 30px; + vertical-align:text-bottom; + padding-top:7px; +} + +.jumbotron.small .description{ + margin-top: 7px; +} + + + +/* screenshot img inside of doc */ +.screenshot { + width : 800px; +} + +/* Table on the index page */ +.table-container { + position: absolute; +} + +.table-stack { +/* border: 1px solid #6371a9;*/ + width:200px; padding: 5px 5px 5px 5px; +} + +.table-stack table { + width:100% +} + +.table-stack tr td{ + border: 1px solid #FFFFFF; + height : 40px; + background-color : #6371a9; + color : #FFFFFF; +} + +.table-stack .gray { + background-color:#DDDDDD; + color:#777777; +} + +/* Table for property */ +.table-configuration { + width : 800px; + border : 1px solid gray; +} +.table-configuration tr td { + border : 1px solid gray; + padding : 5px 5px 5px 5px; +} +.table-configuration tr th { + border : 1px solid gray; + padding : 5px 5px 5px 5px; + background-color: #B0C4DE; +} + + +.rotate270 { + width:15px;padding:10px 0px 0px 0px; + -webkit-transform: rotate(270deg); + -moz-transform: rotate(270deg); + -ms-transform: rotate(270deg); + -o-transform: rotate(270deg); + transform: rotate(270deg); +} + + + + + + + + + +/* Custom container */ +.container-narrow { + margin: 0 auto; +/* max-width: 960px; */ +} + +.container-narrow > hr { + margin: 30px 0; } + +/* posts index */ +.post > h3.title { + position: relative; + padding-top: 10px; } + +.post > h3.title span.date { + position: absolute; + right: 0; + font-size: 0.9em; } + +.post > .more { + margin: 10px 0; + text-align: left; } + +/* post-full*/ +.post-full .date { + margin-bottom: 20px; + font-weight: bold; } + +/* tag_box */ +.tag_box { + list-style: none; + margin: 0; + overflow: hidden; } + +.tag_box li { + line-height: 28px; } + +.tag_box li i { + opacity: 0.9; } + +.tag_box.inline li { + float: left; } + +.tag_box a { + padding: 3px 6px; + margin: 2px; + background: #eee; + color: #555; + border-radius: 3px; + text-decoration: none; + border: 1px dashed #cccccc; } + +.tag_box a span { + vertical-align: super; + font-size: 0.8em; } + +.tag_box a:hover { + background-color: #e5e5e5; } + +.tag_box a.active { + background: #57A957; + border: 1px solid #4c964d; + color: #FFF; } \ No newline at end of file Added: incubator/zeppelin/site/assets/themes/zeppelin/img/body-bg.jpg URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/body-bg.jpg?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/body-bg.jpg ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/download-button.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/download-button.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/download-button.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/github-button.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/github-button.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/github-button.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/graph1.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/graph1.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/graph1.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/graph2.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/graph2.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/graph2.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/header-bg.jpg URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/header-bg.jpg?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/header-bg.jpg ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/highlight-bg.jpg URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/highlight-bg.jpg?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/highlight-bg.jpg ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/notebook.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/notebook.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/notebook.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/collaboration.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/collaboration.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/collaboration.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/display_html.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/display_html.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/display_html.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/display_image.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/display_image.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/display_image.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/display_table.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/display_table.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/display_table.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/display_table_html.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/display_table_html.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/display_table_html.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/display_text.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/display_text.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/display_text.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_input.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_input.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_input.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_input_default.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_input_default.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_input_default.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_input_default_prog.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_input_default_prog.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_input_default_prog.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_input_prog.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_input_prog.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_input_prog.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_select.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_select.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_select.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_select_displayname.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_select_displayname.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_select_displayname.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_select_prog.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_select_prog.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/form_select_prog.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/link_paragraph.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/link_paragraph.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/link_paragraph.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/markdown.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/markdown.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/markdown.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/multiple_language_backend.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/multiple_language_backend.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/multiple_language_backend.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/notebook.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/notebook.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/notebook.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/publish.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/publish.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/publish.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/spark.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/spark.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/spark.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/sparksql.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/sparksql.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/sparksql.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/visualization.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/visualization.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/screenshots/visualization.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/sidebar-bg.jpg URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/sidebar-bg.jpg?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/sidebar-bg.jpg ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/spark_logo.jpg URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/spark_logo.jpg?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/spark_logo.jpg ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/assets/themes/zeppelin/img/zeppelin_logo.png URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/assets/themes/zeppelin/img/zeppelin_logo.png?rev=1650869&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/zeppelin/site/assets/themes/zeppelin/img/zeppelin_logo.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/zeppelin/site/atom.xml URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/atom.xml?rev=1650869&view=auto ============================================================================== --- incubator/zeppelin/site/atom.xml (added) +++ incubator/zeppelin/site/atom.xml Sun Jan 11 04:30:31 2015 @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + + <title>Zeppelin</title> + <link href="http://zeppelin-project.org/" rel="self"/> + <link href="http://zeppelin-project.org"/> + <updated>2015-01-10T11:28:59+09:00</updated> + <id>http://zeppelin-project.org</id> + <author> + <name>The Apache Software Foundation</name> + <email>[email protected]</email> + </author> + + + +</feed> \ No newline at end of file Added: incubator/zeppelin/site/community.html URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/community.html?rev=1650869&view=auto ============================================================================== --- incubator/zeppelin/site/community.html (added) +++ incubator/zeppelin/site/community.html Sun Jan 11 04:30:31 2015 @@ -0,0 +1,247 @@ + +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Community</title> + <meta name="description" content=""> + <meta name="author" content="The Apache Software Foundation"> + + <!-- Enable responsive viewport --> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + + <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> + <!--[if lt IE 9]> + <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> + + <!-- Le styles --> + <link href="/assets/themes/zeppelin/bootstrap/css/bootstrap.css" rel="stylesheet"> + <link href="/assets/themes/zeppelin/css/style.css?body=1" rel="stylesheet" type="text/css"> + + <!-- Le fav and touch icons --> + <!-- Update these with your own images + <link rel="shortcut icon" href="images/favicon.ico"> + <link rel="apple-touch-icon" href="images/apple-touch-icon.png"> + <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> + <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> + --> + + <!-- atom & rss feed --> + <link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed"> + <link href="/rss.xml" type="application/rss+xml" rel="alternate" title="Sitewide RSS Feed"> + </head> + + <body> + + <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" style="font-family: 'Patua One', cursive;" href="/"><img style="margin-top: -7px;s" src="/assets/themes/zeppelin/img/zeppelin_logo.png" width="50" alt="I'm zeppelin"> Zeppelin</a> + </div> + <nav class="navbar-collapse collapse" role="navigation"> + <ul class="nav navbar-nav"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + </ul> + <ul class="nav navbar-nav navbar-right"> + + + + + + + + + + + + + + <li class="active"><a href="/community.html" class="active">Community</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li><a href="/docs/index.html">Docs</a></li> + + + + + + + + + + + + + + + + + + + + <li><a href="/download.html">Download</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li><a href="https://github.com/NFLabs/zeppelin">GitHub</a></li> + </ul> + </nav><!--/.navbar-collapse --> + </div> + </div> + + + <div class="container"> + +<!--<div class="hero-unit Community"> + <h1></h1> +</div> +--> + +<div class="row"> + <div class="col-md-12"> + <h3>Mailing list</h3> + +<p>Get help using Zeppelin or contribute to the project on our mailing lists:</p> + +<ul> +<li><a href="http://mail-archives.apache.org/mod_mbox/incubator-zeppelin-users/">[email protected]</a> is for usage questions, help, and announcements. <a href="mailto:[email protected]?subject=send%20this%20email%20to%20subscribe">subscribe</a>, <a href="mailto:[email protected]?subject=send%20this%20email%20to%20unsubscribe">unsubscribe</a>, <a href="http://mail-archives.apache.org/mod_mbox/incubator-zeppelin-users/">archives</a></li> +<li><a href="http://mail-archives.apache.org/mod_mbox/incubator-zeppelin-dev/">[email protected]</a> is for people who want to contribute code to Zeppelin. <a href="mailto:[email protected]?subject=send%20this%20email%20to%20subscribe">subscribe</a>, <a href="mailto:[email protected]?subject=send%20this%20email%20to%20unsubscribe">unsubscribe</a>, <a href="http://mail-archives.apache.org/mod_mbox/incubator-zeppelin-dev/">archives</a></li> +</ul> + +<h3>Issue tracker</h3> + +<p><a href="https://zeppelin-project.atlassian.net/browse/ZEPPELIN">https://zeppelin-project.atlassian.net/browse/ZEPPELIN</a></p> + + </div> +</div> + + + <hr> + <footer> + <p>© 2015 The Apache Software Foundation</p> + </footer> + </div> + + + <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> + + <script src="/assets/themes/zeppelin/bootstrap/js/bootstrap.min.js"></script> + </body> +</html> + Added: incubator/zeppelin/site/docs/development/howtocontribute.html URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/docs/development/howtocontribute.html?rev=1650869&view=auto ============================================================================== --- incubator/zeppelin/site/docs/development/howtocontribute.html (added) +++ incubator/zeppelin/site/docs/development/howtocontribute.html Sun Jan 11 04:30:31 2015 @@ -0,0 +1,303 @@ + +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>How to contribute</title> + <meta name="description" content="How to contribute"> + <meta name="author" content="The Apache Software Foundation"> + + <!-- Enable responsive viewport --> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + + <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> + <!--[if lt IE 9]> + <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> + + <!-- Le styles --> + <link href="/assets/themes/zeppelin/bootstrap/css/bootstrap.css" rel="stylesheet"> + <link href="/assets/themes/zeppelin/css/style.css?body=1" rel="stylesheet" type="text/css"> + + <!-- Le fav and touch icons --> + <!-- Update these with your own images + <link rel="shortcut icon" href="images/favicon.ico"> + <link rel="apple-touch-icon" href="images/apple-touch-icon.png"> + <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> + <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> + --> + + <!-- atom & rss feed --> + <link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed"> + <link href="/rss.xml" type="application/rss+xml" rel="alternate" title="Sitewide RSS Feed"> + </head> + + <body> + + <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" style="font-family: 'Patua One', cursive;" href="/"><img style="margin-top: -7px;s" src="/assets/themes/zeppelin/img/zeppelin_logo.png" width="50" alt="I'm zeppelin"> Zeppelin</a> + </div> + <nav class="navbar-collapse collapse" role="navigation"> + <ul class="nav navbar-nav"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + </ul> + <ul class="nav navbar-nav navbar-right"> + + + + + + + + + + + + + + <li><a href="/community.html">Community</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li><a href="/docs/index.html">Docs</a></li> + + + + + + + + + + + + + + + + + + + + <li><a href="/download.html">Download</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li><a href="https://github.com/NFLabs/zeppelin">GitHub</a></li> + </ul> + </nav><!--/.navbar-collapse --> + </div> + </div> + + + <div class="container"> + +<!--<div class="hero-unit How to contribute"> + <h1></h1> +</div> +--> + +<div class="row"> + <div class="col-md-12"> + <h2>IMPORTANT</h2> + +<p>Zeppelin is <a href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache2 License</a> Software. +Contribute to Zeppelin (Source code, Documents, Image, Website) means you agree license all your contributions as Apache2 License.</p> + +<h3>Setting up</h3> + +<p>Here are some things you will need to build and test Zeppelin. </p> + +<h4>Software Configuration Management(SCM)</h4> + +<p>Zeppelin uses Git for it's SCM system. Hosted by github.com. https://github.com/nflabs/zeppelin You'll need git client installed in your development machine. </p> + +<h4>Integrated Development Environment(IDE)</h4> + +<p>You are free to use whatever IDE you prefer, or your favorite command line editor. </p> + +<h4>Build Tools</h4> + +<p>To build the code, install +Oracle Java 7 +Apache Maven</p> + +<h3>Getting the source code</h3> + +<p>First of all, you need the Zeppelin source code. The official location for Zeppelin is <a href="https://github.com/nflabs/zeppelin">https://github.com/nflabs/zeppelin</a></p> + +<h4>git access</h4> + +<p>Get the source code on your development machine using git.</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">git clone https://github.com/NFLabs/zeppelin.git zeppelin +</code></pre></div> +<p>You may also want to develop against a specific release. For example, for branch-0.1</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">git clone -b branch-0.1 https://github.com/NFLabs/zeppelin.git zeppelin +</code></pre></div> +<h4>Fork repository</h4> + +<p>If you want not only build Zeppelin but also make change, then you need fork Zeppelin repository and make pull request.</p> + +<h3>Build</h3> +<div class="highlight"><pre><code class="text language-text" data-lang="text">mvn install +</code></pre></div> +<p>To skip test</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">mvn install -DskipTests +</code></pre></div> +<p>To build with specific spark / hadoop version</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">mvn install -Dspark.version=1.0.1 -Dhadoop.version=2.2.0 +</code></pre></div> +<h3>Run Zepplin server in development mode</h3> +<div class="highlight"><pre><code class="text language-text" data-lang="text">cd zeppelin-server +HADOOP_HOME=YOUR_HADOOP_HOME JAVA_HOME=YOUR_JAVA_HOME mvn exec:java -Dexec.mainClass="com.nflabs.zeppelin.server.ZeppelinServer" -Dexec.args="" +</code></pre></div> +<p>or use daemon script</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">bin/zeppelin-daemon start +</code></pre></div> +<p>Server will be run on http://localhost:8080</p> + +<h3>JIRA</h3> + +<p>Zeppelin manages it's issues in Jira. <a href="https://zeppelin-project.atlassian.net/browse/ZEPPELIN">https://zeppelin-project.atlassian.net/browse/ZEPPELIN</a></p> + +<h3>Stay involved</h3> + +<p>Contributors should join the Zeppelin mailing lists.</p> + +<ul> +<li><a href="http://mail-archives.apache.org/mod_mbox/incubator-zeppelin-dev/">[email protected]</a> is for people who want to contribute code to Zeppelin. <a href="mailto:[email protected]?subject=send%20this%20email%20to%20subscribe">subscribe</a>, <a href="mailto:[email protected]?subject=send%20this%20email%20to%20unsubscribe">unsubscribe</a>, <a href="http://mail-archives.apache.org/mod_mbox/incubator-zeppelin-dev/">archives</a></li> +</ul> + + </div> +</div> + + + <hr> + <footer> + <p>© 2015 The Apache Software Foundation</p> + </footer> + </div> + + + <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> + + <script src="/assets/themes/zeppelin/bootstrap/js/bootstrap.min.js"></script> + </body> +</html> + Added: incubator/zeppelin/site/docs/development/writingzeppelininterpreter.html URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/docs/development/writingzeppelininterpreter.html?rev=1650869&view=auto ============================================================================== --- incubator/zeppelin/site/docs/development/writingzeppelininterpreter.html (added) +++ incubator/zeppelin/site/docs/development/writingzeppelininterpreter.html Sun Jan 11 04:30:31 2015 @@ -0,0 +1,281 @@ + +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Writing Zeppelin Interpreter</title> + <meta name="description" content=""> + <meta name="author" content="The Apache Software Foundation"> + + <!-- Enable responsive viewport --> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + + <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> + <!--[if lt IE 9]> + <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> + + <!-- Le styles --> + <link href="/assets/themes/zeppelin/bootstrap/css/bootstrap.css" rel="stylesheet"> + <link href="/assets/themes/zeppelin/css/style.css?body=1" rel="stylesheet" type="text/css"> + + <!-- Le fav and touch icons --> + <!-- Update these with your own images + <link rel="shortcut icon" href="images/favicon.ico"> + <link rel="apple-touch-icon" href="images/apple-touch-icon.png"> + <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> + <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> + --> + + <!-- atom & rss feed --> + <link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed"> + <link href="/rss.xml" type="application/rss+xml" rel="alternate" title="Sitewide RSS Feed"> + </head> + + <body> + + <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" style="font-family: 'Patua One', cursive;" href="/"><img style="margin-top: -7px;s" src="/assets/themes/zeppelin/img/zeppelin_logo.png" width="50" alt="I'm zeppelin"> Zeppelin</a> + </div> + <nav class="navbar-collapse collapse" role="navigation"> + <ul class="nav navbar-nav"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + </ul> + <ul class="nav navbar-nav navbar-right"> + + + + + + + + + + + + + + <li><a href="/community.html">Community</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li><a href="/docs/index.html">Docs</a></li> + + + + + + + + + + + + + + + + + + + + <li><a href="/download.html">Download</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li><a href="https://github.com/NFLabs/zeppelin">GitHub</a></li> + </ul> + </nav><!--/.navbar-collapse --> + </div> + </div> + + + <div class="container"> + +<!--<div class="hero-unit Writing Zeppelin Interpreter"> + <h1></h1> +</div> +--> + +<div class="row"> + <div class="col-md-12"> + <h3>What is Zeppelin Interpreter</h3> + +<p>Zeppelin Interpreter is language backend. For example to use scala code in Zeppelin, you need scala interpreter.</p> + +<h3>Make your own Interpreter</h3> + +<p>Creating a new interpreter is quite simple. Just implementing <a href="https://github.com/NFLabs/zeppelin/blob/master/zeppelin-zengine/src/main/java/com/nflabs/zeppelin/interpreter/Interpreter.java">com.nflabs.zeppelin.interpreter</a> interface.</p> + +<p>You can include com.nflabs.zeppelin:zeppelin-zengine:[VERSION] artifact in your build system.</p> + +<h3>Install your interpreter binary</h3> + +<p>Once you have build your interpreter, you can place your interpreter under directory with all the dependencies.</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">[ZEPPELIN_HOME]/interpreter/[INTERPRETER_NAME]/ +</code></pre></div> +<h3>Configure your interpreter</h3> + +<p>You can configure zeppelin.interpreters property in conf/zeppelin-site.xml +Property value is comma separated [INTERPRETER<em>CLASS</em>NAME]</p> + +<p>for example, </p> +<div class="highlight"><pre><code class="text language-text" data-lang="text"><property> + <name>zeppelin.interpreters</name> + <value>com.nflabs.zeppelin.spark.SparkInterpreter,com.nflabs.zeppelin.spark.SparkSqlInterpreter,com.nflabs.zeppelin.markdown.Markdown,com.nflabs.zeppelin.shell.ShellInterpreter,com.me.MyNewInterpreter</value> +</property> +</code></pre></div> +<h3>Use your interpreter</h3> + +<p>Inside of a notebook, %[INTERPRETER_NAME] directive will call your interpreter. +Note that the first interpreter configuration in zeppelin.interpreters will be the default one.</p> + +<p>for example</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">%myintp + +val a = "My interpreter" +println(a) +</code></pre></div> +<h3>Examples</h3> + +<p>Check some interpreters shipped by default.</p> + +<ul> +<li><a href="https://github.com/NFLabs/zeppelin/tree/master/spark">spark</a></li> +<li><a href="https://github.com/NFLabs/zeppelin/tree/master/markdown">markdown</a></li> +<li><a href="https://github.com/NFLabs/zeppelin/tree/master/shell">shell</a></li> +</ul> + + </div> +</div> + + + <hr> + <footer> + <p>© 2015 The Apache Software Foundation</p> + </footer> + </div> + + + <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> + + <script src="/assets/themes/zeppelin/bootstrap/js/bootstrap.min.js"></script> + </body> +</html> + Added: incubator/zeppelin/site/docs/display.html URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/docs/display.html?rev=1650869&view=auto ============================================================================== --- incubator/zeppelin/site/docs/display.html (added) +++ incubator/zeppelin/site/docs/display.html Sun Jan 11 04:30:31 2015 @@ -0,0 +1,277 @@ + +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Display</title> + <meta name="description" content=""> + <meta name="author" content="The Apache Software Foundation"> + + <!-- Enable responsive viewport --> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + + <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> + <!--[if lt IE 9]> + <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> + + <!-- Le styles --> + <link href="/assets/themes/zeppelin/bootstrap/css/bootstrap.css" rel="stylesheet"> + <link href="/assets/themes/zeppelin/css/style.css?body=1" rel="stylesheet" type="text/css"> + + <!-- Le fav and touch icons --> + <!-- Update these with your own images + <link rel="shortcut icon" href="images/favicon.ico"> + <link rel="apple-touch-icon" href="images/apple-touch-icon.png"> + <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> + <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> + --> + + <!-- atom & rss feed --> + <link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed"> + <link href="/rss.xml" type="application/rss+xml" rel="alternate" title="Sitewide RSS Feed"> + </head> + + <body> + + <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" style="font-family: 'Patua One', cursive;" href="/"><img style="margin-top: -7px;s" src="/assets/themes/zeppelin/img/zeppelin_logo.png" width="50" alt="I'm zeppelin"> Zeppelin</a> + </div> + <nav class="navbar-collapse collapse" role="navigation"> + <ul class="nav navbar-nav"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + </ul> + <ul class="nav navbar-nav navbar-right"> + + + + + + + + + + + + + + <li><a href="/community.html">Community</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li><a href="/docs/index.html">Docs</a></li> + + + + + + + + + + + + + + + + + + + + <li><a href="/download.html">Download</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li><a href="https://github.com/NFLabs/zeppelin">GitHub</a></li> + </ul> + </nav><!--/.navbar-collapse --> + </div> + </div> + + + <div class="container"> + +<!--<div class="hero-unit Display"> + <h1></h1> +</div> +--> + +<div class="row"> + <div class="col-md-12"> + <h3>Display</h3> + +<p>Zeppelin prints output of langauge backend in text, default. +However, if output contains some magic keyword, Zeppelin automatically formatting the output as Table, Chart, Image, Html.</p> + +<p><br /></p> + +<h4>Display as Text</h4> + +<p>If output has no magic keyword provided Zeppelin print the output in text.</p> + +<p><img src="../assets/themes/zeppelin/img/screenshots/display_text.png" /></p> + +<p><br /></p> + +<h4>Display as Html</h4> + +<p>If ouput starts with %html, it interpreted as a html code.</p> + +<p><img src="../assets/themes/zeppelin/img/screenshots/display_html.png" /></p> + +<p><br /></p> + +<h4>Display as Table, Chart</h4> + +<p>If ouput starts with %table, it interpreted as a table. Table can be seen as chart.</p> + +<p>Output's format should be, row separated by '\n' (newline) and column separated by '\t' (tab). First row is header.</p> + +<p><img src="../assets/themes/zeppelin/img/screenshots/display_table.png" /></p> + +<p>If table contents start with %html, it is interpreted as a HTML.</p> + +<p><img src="../assets/themes/zeppelin/img/screenshots/display_table_html.png" /></p> + +<p><br /></p> + +<h4>Display as Image</h4> + +<p>If output starts with %img, it is interpreted as base64 encoded image.</p> + +<p><img src="../assets/themes/zeppelin/img/screenshots/display_image.png" /></p> + + </div> +</div> + + + <hr> + <footer> + <p>© 2015 The Apache Software Foundation</p> + </footer> + </div> + + + <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> + + <script src="/assets/themes/zeppelin/bootstrap/js/bootstrap.min.js"></script> + </body> +</html> + Added: incubator/zeppelin/site/docs/dynamicform.html URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/docs/dynamicform.html?rev=1650869&view=auto ============================================================================== --- incubator/zeppelin/site/docs/dynamicform.html (added) +++ incubator/zeppelin/site/docs/dynamicform.html Sun Jan 11 04:30:31 2015 @@ -0,0 +1,293 @@ + +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Dynamic Form</title> + <meta name="description" content=""> + <meta name="author" content="The Apache Software Foundation"> + + <!-- Enable responsive viewport --> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + + <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> + <!--[if lt IE 9]> + <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> + + <!-- Le styles --> + <link href="/assets/themes/zeppelin/bootstrap/css/bootstrap.css" rel="stylesheet"> + <link href="/assets/themes/zeppelin/css/style.css?body=1" rel="stylesheet" type="text/css"> + + <!-- Le fav and touch icons --> + <!-- Update these with your own images + <link rel="shortcut icon" href="images/favicon.ico"> + <link rel="apple-touch-icon" href="images/apple-touch-icon.png"> + <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> + <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> + --> + + <!-- atom & rss feed --> + <link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed"> + <link href="/rss.xml" type="application/rss+xml" rel="alternate" title="Sitewide RSS Feed"> + </head> + + <body> + + <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" style="font-family: 'Patua One', cursive;" href="/"><img style="margin-top: -7px;s" src="/assets/themes/zeppelin/img/zeppelin_logo.png" width="50" alt="I'm zeppelin"> Zeppelin</a> + </div> + <nav class="navbar-collapse collapse" role="navigation"> + <ul class="nav navbar-nav"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + </ul> + <ul class="nav navbar-nav navbar-right"> + + + + + + + + + + + + + + <li><a href="/community.html">Community</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li><a href="/docs/index.html">Docs</a></li> + + + + + + + + + + + + + + + + + + + + <li><a href="/download.html">Download</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li><a href="https://github.com/NFLabs/zeppelin">GitHub</a></li> + </ul> + </nav><!--/.navbar-collapse --> + </div> + </div> + + + <div class="container"> + +<!--<div class="hero-unit Dynamic Form"> + <h1></h1> +</div> +--> + +<div class="row"> + <div class="col-md-12"> + <h2>Dynamic Form</h2> + +<p>Zeppelin dynamically creates input forms. Depend on language backend, there're two different way to create dynamic form. +Custom lanaugage backend can select which type of form creation he want to use.</p> + +<p><br /></p> + +<h3>Using form Templates</h3> + +<p>This mode creates form using simple template language. It's simple and easy to use. For example Markdown, Shell, SparkSql language backend uses it.</p> + +<p><br /></p> + +<h4>Text input form</h4> + +<p>To create text input form, use <em>${formName}</em> templates.</p> + +<p>for example</p> + +<p><img src="../assets/themes/zeppelin/img/screenshots/form_input.png" /></p> + +<p>Also you can provide default value, using <em>${formName=defaultValue}</em>.</p> + +<p><img src="../assets/themes/zeppelin/img/screenshots/form_input_default.png" /></p> + +<p><br /></p> + +<h4>Select form</h4> + +<p>To create select form, use <em>${formName=defaultValue,option1|option2...}</em></p> + +<p>for example</p> + +<p><img src="../assets/themes/zeppelin/img/screenshots/form_select.png" /></p> + +<p>Also you can separate option's display name and value, using <em>${formName=defaultValue,option1(DisplayName)|option2(DisplayName)...}</em></p> + +<p><img src="../assets/themes/zeppelin/img/screenshots/form_select_displayname.png" /></p> + +<p><br /></p> + +<h3>Creates Programatically</h3> + +<p>Some language backend use programtic way to create form. for example, scala language backend. Function to create form is provided by <a href="./zeppelincontext.html">ZeppelinContext</a>.</p> + +<p>Here're some examples.</p> + +<p>Text input form</p> + +<p><img src="../assets/themes/zeppelin/img/screenshots/form_input_prog.png" /></p> + +<p>Text input form with default value</p> + +<p><img src="../assets/themes/zeppelin/img/screenshots/form_input_default_prog.png" /></p> + +<p>Select form</p> + +<p><img src="../assets/themes/zeppelin/img/screenshots/form_select_prog.png" /></p> + + </div> +</div> + + + <hr> + <footer> + <p>© 2015 The Apache Software Foundation</p> + </footer> + </div> + + + <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> + + <script src="/assets/themes/zeppelin/bootstrap/js/bootstrap.min.js"></script> + </body> +</html> + Added: incubator/zeppelin/site/docs/index.html URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/docs/index.html?rev=1650869&view=auto ============================================================================== --- incubator/zeppelin/site/docs/index.html (added) +++ incubator/zeppelin/site/docs/index.html Sun Jan 11 04:30:31 2015 @@ -0,0 +1,261 @@ + +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Docs</title> + <meta name="description" content=""> + <meta name="author" content="The Apache Software Foundation"> + + <!-- Enable responsive viewport --> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + + <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> + <!--[if lt IE 9]> + <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> + + <!-- Le styles --> + <link href="/assets/themes/zeppelin/bootstrap/css/bootstrap.css" rel="stylesheet"> + <link href="/assets/themes/zeppelin/css/style.css?body=1" rel="stylesheet" type="text/css"> + + <!-- Le fav and touch icons --> + <!-- Update these with your own images + <link rel="shortcut icon" href="images/favicon.ico"> + <link rel="apple-touch-icon" href="images/apple-touch-icon.png"> + <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> + <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> + --> + + <!-- atom & rss feed --> + <link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed"> + <link href="/rss.xml" type="application/rss+xml" rel="alternate" title="Sitewide RSS Feed"> + </head> + + <body> + + <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" style="font-family: 'Patua One', cursive;" href="/"><img style="margin-top: -7px;s" src="/assets/themes/zeppelin/img/zeppelin_logo.png" width="50" alt="I'm zeppelin"> Zeppelin</a> + </div> + <nav class="navbar-collapse collapse" role="navigation"> + <ul class="nav navbar-nav"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + </ul> + <ul class="nav navbar-nav navbar-right"> + + + + + + + + + + + + + + <li><a href="/community.html">Community</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li class="active"><a href="/docs/index.html" class="active">Docs</a></li> + + + + + + + + + + + + + + + + + + + + <li><a href="/download.html">Download</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li><a href="https://github.com/NFLabs/zeppelin">GitHub</a></li> + </ul> + </nav><!--/.navbar-collapse --> + </div> + </div> + + + <div class="container"> + +<!--<div class="hero-unit Docs"> + <h1></h1> +</div> +--> + +<div class="row"> + <div class="col-md-12"> + <h3>Install</h3> + +<ul> +<li><a href="./install/install.html">Install</a></li> +</ul> + +<h3>Tutorial</h3> + +<ul> +<li><a href="./tutorial/tutorial.html">Tutorial</a></li> +</ul> + +<h3>Manual</h3> + +<ul> +<li><a href="./zeppelincontext.html">Zeppelin Context</a></li> +<li><a href="./dynamicform.html">Dynamic Form</a></li> +<li><a href="./display.html">Display System</a></li> +</ul> + +<h3>Development</h3> + +<ul> +<li><a href="./development/writingzeppelininterpreter.html">Writing Zeppelin Interpreter</a></li> +<li><a href="./development/howtocontribute.html">How to contribute</a></li> +</ul> + + </div> +</div> + + + <hr> + <footer> + <p>© 2015 The Apache Software Foundation</p> + </footer> + </div> + + + <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> + + <script src="/assets/themes/zeppelin/bootstrap/js/bootstrap.min.js"></script> + </body> +</html> + Added: incubator/zeppelin/site/docs/install/install.html URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/docs/install/install.html?rev=1650869&view=auto ============================================================================== --- incubator/zeppelin/site/docs/install/install.html (added) +++ incubator/zeppelin/site/docs/install/install.html Sun Jan 11 04:30:31 2015 @@ -0,0 +1,332 @@ + +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Install Zeppelin</title> + <meta name="description" content=""> + <meta name="author" content="The Apache Software Foundation"> + + <!-- Enable responsive viewport --> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + + <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> + <!--[if lt IE 9]> + <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> + + <!-- Le styles --> + <link href="/assets/themes/zeppelin/bootstrap/css/bootstrap.css" rel="stylesheet"> + <link href="/assets/themes/zeppelin/css/style.css?body=1" rel="stylesheet" type="text/css"> + + <!-- Le fav and touch icons --> + <!-- Update these with your own images + <link rel="shortcut icon" href="images/favicon.ico"> + <link rel="apple-touch-icon" href="images/apple-touch-icon.png"> + <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> + <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> + --> + + <!-- atom & rss feed --> + <link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed"> + <link href="/rss.xml" type="application/rss+xml" rel="alternate" title="Sitewide RSS Feed"> + </head> + + <body> + + <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" style="font-family: 'Patua One', cursive;" href="/"><img style="margin-top: -7px;s" src="/assets/themes/zeppelin/img/zeppelin_logo.png" width="50" alt="I'm zeppelin"> Zeppelin</a> + </div> + <nav class="navbar-collapse collapse" role="navigation"> + <ul class="nav navbar-nav"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + </ul> + <ul class="nav navbar-nav navbar-right"> + + + + + + + + + + + + + + <li><a href="/community.html">Community</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li><a href="/docs/index.html">Docs</a></li> + + + + + + + + + + + + + + + + + + + + <li><a href="/download.html">Download</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li><a href="https://github.com/NFLabs/zeppelin">GitHub</a></li> + </ul> + </nav><!--/.navbar-collapse --> + </div> + </div> + + + <div class="container"> + +<!--<div class="hero-unit Install Zeppelin"> + <h1></h1> +</div> +--> + +<div class="row"> + <div class="col-md-12"> + <h2>Build</h2> + +<h4>Prerequisites</h4> + +<ul> +<li>Java 1.7</li> +<li>None root account</li> +<li>Apache Maven</li> +</ul> + +<p>Build tested on OSX, CentOS 6.</p> + +<p>Checkout source code from <a href="https://github.com/NFLabs/zeppelin">https://github.com/NFLabs/zeppelin</a></p> + +<h4>Local mode</h4> +<div class="highlight"><pre><code class="text language-text" data-lang="text">mvn install -DskipTests +</code></pre></div> +<h4>Cluster mode</h4> +<div class="highlight"><pre><code class="text language-text" data-lang="text">mvn install -DskipTests -Dspark.version=1.1.0 -Dhadoop.version=2.2.0 +</code></pre></div> +<p>Change spark.version and hadoop.version to your cluster's one.</p> + +<h4>Custom built Spark</h4> + +<p>Note that is you uses custom build spark, you need build Zeppelin with custome built spark artifact. To do that, deploy spark artifact to local maven repository using</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">sbt/sbt publish-local +</code></pre></div> +<p>and then build Zeppelin with your custom built Spark</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">mvn install -DskipTests -Dspark.version=1.1.0-Custom -Dhadoop.version=2.2.0 +</code></pre></div> +<h2>Configure</h2> + +<p>Configuration can be done by both environment variable(conf/zeppelin-env.sh) and java properties(conf/zeppelin-site.xml). If both defined, environment vaiable is used.</p> + +<table class="table-configuration"> + <tr> + <th>zepplin-env.sh</th> + <th>zepplin-site.xml</th> + <th>Default value</th> + <th>Description</th> + </tr> + <tr> + <td>ZEPPELIN_PORT</td> + <td>zeppelin.server.port</td> + <td>8080</td> + <td>Zeppelin server port. Note that port+1 is used for web socket</td> + </tr> + <tr> + <td>ZEPPELIN_NOTEBOOK_DIR</td> + <td>zeppelin.notebook.dir</td> + <td>notebook</td> + <td>Where notebook file is saved</td> + </tr> + <tr> + <td>ZEPPELIN_INTERPRETERS</td> + <td>zeppelin.interpreters</td> + <description></description> + <td>spark:com.nflabs.zeppelin.spark.SparkInterpreter,<br />sql:com.nflabs.zeppelin.spark.SparkSqlInterpreter,<br />md:com.nflabs.zeppelin.markdown.Markdown,<br />sh:com.nflabs.zeppelin.shell.ShellInterpreter</td> + <td>Comma separated interpreter configurations [Name]:[Class]. First interpreter become a default</td> + </tr> + <tr> + <td>ZEPPELIN_INTERPRETER_DIR</td> + <td>zeppelin.interpreter.dir</td> + <td>interpreter</td> + <td>Zeppelin interpreter directory</td> + </tr> + <tr> + <td>MASTER</td> + <td></td> + <td>N/A</td> + <td>Spark master url. eg. spark://master_addr:7077. Leave empty if you want to use local mode</td> + </tr> + <tr> + <td>ZEPPELIN_JAVA_OPTS</td> + <td></td> + <td>N/A</td> + <td>JVM Options</td> +</table> + +<h4>Add jars, files</h4> + +<p>spark.jars, spark.files property in <em>ZEPPELIN_JAVA_OPTS</em> adds jars, files into SparkContext. +for example, </p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">ZEPPELIN_JAVA_OPTS="-Dspark.jars=/mylib1.jar,/mylib2.jar -Dspark.files=/myfile1.dat,/myfile2.dat" +</code></pre></div> +<p>or you can do it dynamically with <a href="http://localhost:4000/docs/zeppelincontext.html">dependency loader</a></p> + +<h2>Start/Stop</h2> + +<h4>Start Zeppelin</h4> +<div class="highlight"><pre><code class="text language-text" data-lang="text">bin/zeppelin-daemon.sh start +</code></pre></div> +<p>After successful start, visit http://localhost:8080 with your web browser. +Note that port <strong>8081</strong> also need to be accessible for websocket connection.</p> + +<h4>Stop Zeppelin</h4> +<div class="highlight"><pre><code class="text language-text" data-lang="text">bin/zeppelin-daemon.sh stop +</code></pre></div> + </div> +</div> + + + <hr> + <footer> + <p>© 2015 The Apache Software Foundation</p> + </footer> + </div> + + + <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> + + <script src="/assets/themes/zeppelin/bootstrap/js/bootstrap.min.js"></script> + </body> +</html> + Added: incubator/zeppelin/site/docs/tutorial/tutorial.html URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/docs/tutorial/tutorial.html?rev=1650869&view=auto ============================================================================== --- incubator/zeppelin/site/docs/tutorial/tutorial.html (added) +++ incubator/zeppelin/site/docs/tutorial/tutorial.html Sun Jan 11 04:30:31 2015 @@ -0,0 +1,380 @@ + +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Tutorial</title> + <meta name="description" content=""> + <meta name="author" content="The Apache Software Foundation"> + + <!-- Enable responsive viewport --> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + + <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> + <!--[if lt IE 9]> + <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> + + <!-- Le styles --> + <link href="/assets/themes/zeppelin/bootstrap/css/bootstrap.css" rel="stylesheet"> + <link href="/assets/themes/zeppelin/css/style.css?body=1" rel="stylesheet" type="text/css"> + + <!-- Le fav and touch icons --> + <!-- Update these with your own images + <link rel="shortcut icon" href="images/favicon.ico"> + <link rel="apple-touch-icon" href="images/apple-touch-icon.png"> + <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> + <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> + --> + + <!-- atom & rss feed --> + <link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed"> + <link href="/rss.xml" type="application/rss+xml" rel="alternate" title="Sitewide RSS Feed"> + </head> + + <body> + + <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" style="font-family: 'Patua One', cursive;" href="/"><img style="margin-top: -7px;s" src="/assets/themes/zeppelin/img/zeppelin_logo.png" width="50" alt="I'm zeppelin"> Zeppelin</a> + </div> + <nav class="navbar-collapse collapse" role="navigation"> + <ul class="nav navbar-nav"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + </ul> + <ul class="nav navbar-nav navbar-right"> + + + + + + + + + + + + + + <li><a href="/community.html">Community</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li><a href="/docs/index.html">Docs</a></li> + + + + + + + + + + + + + + + + + + + + <li><a href="/download.html">Download</a></li> + + + + + + + + + + + + + + + + + + + + + + + + <li><a href="https://github.com/NFLabs/zeppelin">GitHub</a></li> + </ul> + </nav><!--/.navbar-collapse --> + </div> + </div> + + + <div class="container"> + +<!--<div class="hero-unit Tutorial"> + <h1></h1> +</div> +--> + +<div class="row"> + <div class="col-md-12"> + <h3>Zeppelin Tutorial</h3> + +<p>We will assume you have Zeppelin installed already. If that's not the case, see <a href="../../install/install.md">Install</a>.</p> + +<p>Zeppelin's current main backend processing engine is <a href="https://spark.apache.org">Apache Spark</a>. If you're new to the system, you might want to start by getting an idea of how it processes data to get the most out of Zeppelin.</p> + +<p><br /></p> + +<h3>Tutorial with Local File</h3> + +<h4>Data Refine</h4> + +<p>Before you start Zeppelin tutorial, you will need to download <a href="http://archive.ics.uci.edu/ml/machine-learning-databases/00222/bank.zip">bank.zip</a>. </p> + +<p>First, to transform data from csv format into RDD of <code>Bank</code> objects, run following script. This will also remove header using <code>filter</code> function.</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">val bankText = sc.textFile("/Users/mina/Zeppelin/bank/bank-full.csv") + +case class Bank(age:Integer, job:String, marital : String, education : String, balance : Integer) + +val bank = bankText.map(s=>s.split(";")).filter(s=>s(0)!="\"age\"").map( + s=>Bank(s(0).toInt, + s(1).replaceAll("\"", ""), + s(2).replaceAll("\"", ""), + s(3).replaceAll("\"", ""), + s(5).replaceAll("\"", "").toInt + ) +) + +bank.registerTempTable("bank") +</code></pre></div> +<p><br /></p> + +<h4>Data Retrieval</h4> + +<p>Suppose we want to see age distribution from <code>bank</code>. To do this, run:</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">%sql select age, count(1) from bank where age < 30 group by age order by age +</code></pre></div> +<p>You can make input box for setting age condition by replacing <code>30</code> with <code>${maxAge=30}</code>.</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">%sql select age, count(1) from bank where age < ${maxAge=30} group by age order by age +</code></pre></div> +<p>Now we want to see age distribution with certain marital status and add combo box to select marital status. Run:</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">%sql select age, count(1) from bank where marital="${marital=single,single|divorced|married}" group by age order by age +</code></pre></div> +<p><br /></p> + +<h3>Tutorial with Streaming Data</h3> + +<h4>Data Refine</h4> + +<p>Since this tutorial is based on Twitter's sample tweet stream, you must configure authentication with a Twitter account. To do this, take a look at <a href="https://databricks-training.s3.amazonaws.com/realtime-processing-with-spark-streaming.html#twitter-credential-setup">Twitter Credential Setup</a>. After you get API keys, you should fill out credential related values(<code>apiKey</code>, <code>apiSecret</code>, <code>accessToken</code>, <code>accessTokenSecret</code>) with your API keys on following script.</p> + +<p>In case you run Zeppelin server using IDE not through command-line, make sure that you set JVM arguments as <code>-XX:PermSize=512m -XX:MaxPermSize=512m -Xms256m -Xmx1024m</code> to prevent out of memory exception.</p> + +<p>This will create a RDD of <code>Tweet</code> objects and register these stream data as a table:</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">import org.apache.spark.streaming._ +import org.apache.spark.streaming.twitter._ +import org.apache.spark.storage.StorageLevel +import scala.io.Source +import scala.collection.mutable.HashMap +import java.io.File +import org.apache.log4j.Logger +import org.apache.log4j.Level +import sys.process.stringSeqToProcess + +/** Configures the Oauth Credentials for accessing Twitter */ +def configureTwitterCredentials(apiKey: String, apiSecret: String, accessToken: String, accessTokenSecret: String) { + val configs = new HashMap[String, String] ++= Seq( + "apiKey" -> apiKey, "apiSecret" -> apiSecret, "accessToken" -> accessToken, "accessTokenSecret" -> accessTokenSecret) + println("Configuring Twitter OAuth") + configs.foreach{ case(key, value) => + if (value.trim.isEmpty) { + throw new Exception("Error setting authentication - value for " + key + " not set") + } + val fullKey = "twitter4j.oauth." + key.replace("api", "consumer") + System.setProperty(fullKey, value.trim) + println("\tProperty " + fullKey + " set as [" + value.trim + "]") + } + println() +} + +// Configure Twitter credentials +val apiKey = "xxxxxxxxxxxxxxxxxxxxxxxxx" +val apiSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" +val accessToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" +val accessTokenSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" +configureTwitterCredentials(apiKey, apiSecret, accessToken, accessTokenSecret) + +import org.apache.spark.streaming.twitter._ +val ssc = new StreamingContext(sc, Seconds(2)) +val tweets = TwitterUtils.createStream(ssc, None) +val twt = tweets.window(Seconds(60)) + +case class Tweet(createdAt:Long, text:String) +twt.map(status=> + Tweet(status.getCreatedAt().getTime()/1000, status.getText()) +).foreachRDD(rdd=> + rdd.registerAsTable("tweets") +) + +twt.print + +ssc.start() +</code></pre></div> +<p><br /></p> + +<h4>Data Retrieval</h4> + +<p>For each following script, every time you click run button you will see different result since it is based on real-time data.</p> + +<p>Let's begin by extracting maximum 10 tweets which contain the word "girl".</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">%sql select * from tweets where text like '%girl%' limit 10 +</code></pre></div> +<p>This time suppose we want to see how many tweets have been created per sec during last 60 sec. To do this, run:</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">%sql select createdAt, count(1) from tweets group by createdAt order by createdAt +</code></pre></div> +<p>You can make user-defined function and use it in Spark SQL. Let's try it by making function named <code>sentiment</code>. This function will return one of the three attitudes(positive, negative, neutral) towards the parameter.</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">def sentiment(s:String) : String = { + val positive = Array("like", "love", "good", "great", "happy", "cool", "the", "one", "that") + val negative = Array("hate", "bad", "stupid", "is") + + var st = 0; + + val words = s.split(" ") + positive.foreach(p => + words.foreach(w => + if(p==w) st = st+1 + ) + ) + + negative.foreach(p=> + words.foreach(w=> + if(p==w) st = st-1 + ) + ) + if(st>0) + "positivie" + else if(st<0) + "negative" + else + "neutral" +} +sqlc.registerFunction("sentiment", sentiment _) +</code></pre></div> +<p>To check how people think about girls using <code>sentiment</code> function we've made above, run this:</p> +<div class="highlight"><pre><code class="text language-text" data-lang="text">%sql select sentiment(text), count(1) from tweets where text like '%girl%' group by sentiment(text) +</code></pre></div> + </div> +</div> + + + <hr> + <footer> + <p>© 2015 The Apache Software Foundation</p> + </footer> + </div> + + + <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> + + <script src="/assets/themes/zeppelin/bootstrap/js/bootstrap.min.js"></script> + </body> +</html> +
