DataImportProcess

1.preparethefile

AllthefilesareendedwiththevendorId,*.11101.Allthesefilesarelistedin/mnt/feeds.

firstweneedtozipallthefiles.

>tar-cjvf/working_directory/loadfilename.bz2*.11101

downloadthefiletolocaldirectory

>[email protected]:/working_directory/loadfilename.bz2./loadfilename.bz2

>tarzxvfloadfilename.bz2

2.preparetheserver

updatethelatestservercodes.

modifythebasicConfiguration.xml,deletetheotheremailusers.

3.executeURL

http://server.com:8080/30cm-dbupdate/process?vendorId=11101

http://server.com:8080/30cm-dbupdate/executeDBUpdater.jsp?name=storename

weneedtocheckthestorenameinDBUpdater.javaclass.Thestorenameishardcodethere.

4.preparethedatabase

exportthestructurefromserver.

>mysqldump-uusername-ppassword-hlocalhost-P3306-ddatabasename>/home/hua.luo/database.sql

>[email protected]:/home/hua.luo/database.sql./database.sql

>mysql-uusername-ppassword-hlocalhost-P3306databasename</Users/carl/feeds/database.sql

Everythingisdone.

5.preparetheJBOSSconfiguration

click'Openlaunchconfiguration'---->Arguments--->VMArguments----->

-Dprogram.name=run.bat-Xms768m-Xmx1568m-XX:MaxPermSize=356m

>curlexecuteURL

Checkiftheserverisrunningwell

>ps-ef|grepmysql

references: