Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mock-neo4j-data
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
丁强
mock-neo4j-data
Commits
505f83b8
Commit
505f83b8
authored
Apr 21, 2020
by
丁强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交模拟数据代码
parent
09d9128e
Pipeline
#519
failed with stages
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
import_mock_data.sh
import_mock_data.sh
+18
-0
mock_data.sh
mock_data.sh
+3
-0
up.sh
up.sh
+0
-2
No files found.
import_mock_data.sh
0 → 100644
View file @
505f83b8
#!/bin/bash
NEO4J_HOME
=
/home/quant_group/relation/neo4j-3.2
data_dir
=
/home/quant_group/relation/mock-data
dat
=
`
date
+%Y%m%d
`
$NEO4J_HOME
/bin/neo4j stop
if
[
-d
$NEO4J_HOME
/data/databases/graph.db
]
;
then
rm
-rf
$NEO4J_HOME
/data/databases/graph.db.
*
mv
$NEO4J_HOME
/data/databases/graph.db
$NEO4J_HOME
/data/databases/graph.db.
$dat
fi
$NEO4J_HOME
/bin/neo4j-import
--into
$NEO4J_HOME
/data/databases/graph.db
--nodes
:user
"
$data_dir
/user.csv"
--relationships
:order
"
$data_dir
/order.csv,
$data_dir
/order_circle.csv"
--delimiter
','
--bad-tolerance
100000000
--skip-duplicate-nodes
>
log.log
$NEO4J_HOME
/bin/neo4j start
sleep
5m
#$NEO4J_HOME/bin/neo4j-shell --host 172.18.3.45 -c "create index on :user(uuid);";
$NEO4J_HOME
/bin/neo4j-shell
--host
173.18.4.45
-c
"create index on :user(phone);"
;
\ No newline at end of file
mock_data.sh
0 → 100644
View file @
505f83b8
#!/bin/bash
base_path
=
/home/quant_group/relation/mock-data
nohup
java
-Dspring
.config.location
=
$base_path
/application.yml
-jar
$base_path
/mock-neo4j-data-1.0-SNAPSHOT.jar &
\ No newline at end of file
up.sh
deleted
100644 → 0
View file @
09d9128e
mvn clean package
--offline
scp target/remote-hdfs-1.0-SNAPSHOT.jar sysapp@172.18.3.97:~/
\ No newline at end of file
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