spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JaeBoo Jung <itsjb.j...@samsung.com>
Subject use spark-shell in the source
Date Thu, 12 Jun 2014 05:56:34 GMT
<HTML><HEAD><TITLE>Samsung Enterprise Portal mySingle</TITLE>
<META content="text/html; charset=euc-kr" http-equiv=Content-Type>
<STYLE id=mysingle_style type=text/css>P {
	MARGIN-TOP: 5px; FONT-FAMILY: 굴림체, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt
}
TD {
	MARGIN-TOP: 5px; FONT-FAMILY: 굴림체, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt
}
LI {
	MARGIN-TOP: 5px; FONT-FAMILY: 굴림체, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt
}
BODY {
	LINE-HEIGHT: 1.4; MARGIN: 10px; FONT-FAMILY: 굴림체, arial; FONT-SIZE: 9pt
}
</STYLE>

<META name=GENERATOR content=ActiveSquare></HEAD>
<BODY>
<P>Hi all,</P>
<P>&nbsp;</P>
<P>Can I use spark-shell programmatically in my spark application(in java or scala)?</P>
<P>Because I want to&nbsp;convert scala&nbsp;lines to string array and run automatically
in my application.</P>
<P>For example,</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;for( var line &lt;- lines){</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//run
this line in spark shell style and get outputs.</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;run(line);</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;}</P>
<P>Thanks</P><!--SP:itsjb.jung-->
<P><SPAN style="FONT-FAMILY: 굴림체; FONT-SIZE: 8pt"><SPAN style="FONT-FAMILY:
Verdana; FONT-SIZE: 8pt"><SPAN style="FONT-FAMILY: 굴림체; FONT-SIZE: 8pt"><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 8pt"><FONT style="MARGIN-TOP: 0px; MARGIN-BOTTOM:
0px; FONT-SIZE: 8pt" size=3><SPAN style="FONT-FAMILY: 굴림체; FONT-SIZE: 8pt"><SPAN
style="FONT-FAMILY: Verdana; COLOR: #009ce1; FONT-SIZE: 8pt">_____________________________________________
<BR></SPAN></SPAN></FONT></SPAN></SPAN></SPAN></SPAN></P>
<P><SPAN style="FONT-FAMILY: 굴림체; FONT-SIZE: 8pt"><SPAN style="FONT-FAMILY:
Verdana; FONT-SIZE: 8pt"><SPAN style="FONT-FAMILY: 굴림체; FONT-SIZE: 8pt"><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 8pt"><FONT style="MARGIN-TOP: 0px; MARGIN-BOTTOM:
0px; FONT-SIZE: 8pt" size=3><SPAN><STRONG>JaeBoo, Jung</STRONG> <BR>Assistant&nbsp;Engineer&nbsp;/&nbsp;BDA
Lab&nbsp;/ Samsung SDS</SPAN></FONT></SPAN></SPAN></SPAN></SPAN></P></BODY></HTML><img
src='http://ext.samsung.net/mailcheck/SeenTimeChecker?do=81ee445bee8ae6b5b3dda8ad0682419b18820635aed45dd4fc144f529aba3c5c911590d97d85df7fd4b5cb504b28632862e1ac75b522795a07805447a154a46fcf878f9a26ce15a0'
border=0 width=0 height=0 style='display:none'>
Mime
View raw message