Sign in
apache
/
incubator-retired-amaterasu
/
c664db1b725e43fb2fbe03dc5fc83cd7b3a6bc21
/
.
/
executor
/
src
/
test
/
resources
/
simple-pyspark.py
blob: df9eb0a7d19fcb9d2b8506b3e1e6637cc9c6a197 [
file
] [
log
] [
blame
]
data
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
]
try
:
rdd
=
sc
.
parallelize
(
data
)
def
g
(
x
):
print
(
x
)
rdd
.
foreach
(
g
)
except
Exception
as
e
:
print
type
(
e
),
e