Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
fe1acbcc
Commit
fe1acbcc
authored
May 10, 2019
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change testflie
parent
ad95f086
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
multi.py
tensnsorflow/multi.py
+3
-0
test.py
tensnsorflow/test.py
+0
-4
No files found.
tensnsorflow/multi.py
View file @
fe1acbcc
...
...
@@ -220,6 +220,9 @@ def test():
if
__name__
==
'__main__'
:
import
os
os
.
environ
[
'PYSPARK_PYTHON'
]
=
'./nvwa/esmm/bin/python'
sparkConf
=
SparkConf
()
.
set
(
"spark.hive.mapred.supports.subdirectories"
,
"true"
)
\
.
set
(
"spark.hadoop.mapreduce.input.fileinputformat.input.dir.recursive"
,
"true"
)
\
.
set
(
"spark.tispark.plan.allow_index_double_read"
,
"false"
)
\
...
...
tensnsorflow/test.py
View file @
fe1acbcc
...
...
@@ -49,9 +49,5 @@ if __name__ == '__main__':
# sql = "select stat_date,cid_id,y,ccity_name from esmm_train_data limit 60"
# spark.sql(sql).show(6)
rdd
=
(
spark
.
parallelize
(
range
(
1000
))
.
map
(
some_function
)
.
take
(
10
))
print
(
rdd
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment