`
sillycat
  • 浏览: 2488579 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Data Import Process

 
阅读更多
Data Import Process
1. prepare the file
All the files are ended with the vendorId, *.11101. All these files are listed in /mnt/feeds.

first we need to zip all the files.
>tar -cjvf /working_directory/loadfilename.bz2 *.11101

download the file to local directory
>scp username@server.com:/working_directory/loadfilename.bz2 ./loadfilename.bz2

>tar zxvf loadfilename.bz2

2. prepare the server
update the latest server codes.
modify the basicConfiguration.xml, delete the other email users.

3. execute URL
http://server.com:8080/30cm-dbupdate/process?vendorId=11101
http://server.com:8080/30cm-dbupdate/executeDBUpdater.jsp?name=storename

we need to check the store name in DBUpdater.java class. The store name is hard code there.

4. prepare the database
export the structure from server.
>mysqldump -u username -ppassword -h localhost -P 3306 -d databasename >/home/hua.luo/database.sql

>scp username@server.com:/home/hua.luo/database.sql ./database.sql

>mysql -u username -ppassword -h localhost -P 3306  databasename </Users/carl/feeds/database.sql

Every thing is done.

5. prepare the JBOSS configuration
click 'Open launch configuration' ----> Arguments ---> VM Arguments ----->
-Dprogram.name=run.bat -Xms768m -Xmx1568m  -XX:MaxPermSize=356m

>curl executeURL

Check if the server is running well
>ps -ef | grep mysql

references:



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics