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 [email protected]:/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 [email protected]:/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:
Data Import Process
猜你喜欢
转载自sillycat.iteye.com/blog/1671716
今日推荐
周排行