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
ab18ef36
Commit
ab18ef36
authored
Nov 05, 2018
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chang
parent
c9604b08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
WeafareStat.scala
eda/feededa/src/main/scala/com/gmei/WeafareStat.scala
+1
-1
testt.scala
eda/feededa/src/main/scala/com/gmei/testt.scala
+6
-1
No files found.
eda/feededa/src/main/scala/com/gmei/WeafareStat.scala
View file @
ab18ef36
...
...
@@ -40,7 +40,7 @@ object WeafareStat {
val
sc
=
spark_env
.
_2
val
ti
=
new
TiContext
(
sc
)
ti
.
tidbMapTable
(
dbName
=
"
jerry_prod
"
,
tableName
=
"diary_video"
)
ti
.
tidbMapTable
(
dbName
=
"
eagle
"
,
tableName
=
"diary_video"
)
ti
.
tidbMapTable
(
dbName
=
"jerry_prod"
,
tableName
=
"data_feed_click"
)
ti
.
tidbMapTable
(
dbName
=
"eagle"
,
tableName
=
"feed_diary_boost"
)
...
...
eda/feededa/src/main/scala/com/gmei/testt.scala
View file @
ab18ef36
...
...
@@ -75,10 +75,15 @@ object testt {
get_data_dura
.
printSchema
get_data_dura
.
show
(
5
)
val
tst
=
get_data_dura
.
filter
(
"params[duration] > 0"
)
val
tst2
=
tst
.
filter
(
"params[duration] > 0"
)
val
result
=
get_data_dura
.
rdd
.
map
(
row
=>{
println
(
row
)
val
rowa
=
row
.
})
...
...
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