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
c04c4706
Commit
c04c4706
authored
Apr 19, 2019
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
7fc3bb53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Data2FFM.scala
eda/feededa/src/main/scala/com/gmei/Data2FFM.scala
+6
-4
No files found.
eda/feededa/src/main/scala/com/gmei/Data2FFM.scala
View file @
c04c4706
...
...
@@ -3,7 +3,7 @@ import java.io.{File, PrintWriter, Serializable}
import
com.gmei.lib.AbstractParams
import
org.apache.log4j.
{
Level
,
Logger
}
import
org.apache.spark.sql.
{
DataFrame
,
SaveMode
,
TiContext
}
import
org.apache.spark.sql.
{
DataFrame
,
SaveMode
}
import
scopt.OptionParser
...
...
@@ -47,9 +47,11 @@ object Data2FFM {
val
spark_env
=
GmeiConfig
.
getSparkSession
()
val
sc
=
spark_env
.
_2
val
ti
=
new
TiContext
(
sc
)
ti
.
tidbMapTable
(
dbName
=
"jerry_test"
,
tableName
=
"esmm_train_data"
)
ti
.
tidbMapTable
(
dbName
=
"jerry_test"
,
tableName
=
"esmm_pre_data"
)
sc
.
sql
(
"use jerry_test"
)
// val ti = new TiContext(sc)
// ti.tidbMapTable(dbName = "jerry_test", tableName = "esmm_train_data")
// ti.tidbMapTable(dbName = "jerry_test", tableName = "esmm_pre_data")
val
train_sep_date
=
GmeiConfig
.
getMinusNDate
(
10
)
...
...
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