选择正确的工具
我有以下需求:
1)用户将在“uploads”文件夹中上传.xls或.csv文件。 2)必须不断监视“uploads”文件夹,并且每添加一个新文件,就必须启动一项工作。 3)作业将处理.xls或.csv文件中的数据,使它们符合数据库表结构,并将这些数据写入数据库表。
这必须是自动化的过程,我正在寻找一体化的解决方案工具。
I have following need:
1) Users will upload .xls or .csv files in "uploads" folder.
2) "uploads" folder have to be constantly monitored, and with each new file added to him, a job has to be started.
3) Job will process data from .xls or .csv file so they meet DB table structure, and write this data into DB table.
This have to be automated process, and I'm looking for all-in-one solution tool.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您没有说明在哪个操作系统上,也没有说明用户是否将文件上传到不同的服务器上。如果通过 Web 应用程序上传(使用 HTTP POST 请求),情况也会有所不同。
我不确定您的愿望是否适合许多用户。
You didn't tell on which operating system, and you didn't tell if the user upload the files on a different server, or not. If the upload goes thru a web application (using an HTTP POST request), it is also different.
And I'm not sure that your wish scales well with many users.
你应该看看 Pentaho Data Integration,又名 Kettle: http://sourceforge.net/projects/pentaho/< /a>
使用 Kettle,您可以设计一个作业来汇集上传目录,一旦找到文件,就可以在所需的数据库表上进行所有需要的转换和输入。
You should take a look at Pentaho Data Integration, a.k.a. Kettle: http://sourceforge.net/projects/pentaho/
With Kettle you can desing a Job that pools the upload directory and once a file is found makes all the needed transformation and input on the desired database table.