batch-processing

Mule ESB - design a multi file processing flow when files are dependent on each other

笑着哭i 提交于 2019-12-25 01:04:58
问题 Okie...I am aware of Datamappers, Batch and streaming support in File inbound elements. What i want to know is the design pattern for integration when: You have multiple files (csv or xml) to process eg: 1 file named products.csv contains all details about products. Another file images.csv has URLs to images of each product listed in the products.csv file. Another file lets say prices.csv has details of prices of each product. All the files are linked to each other using a PK type e.g:

Batching php's fgetcsv

故事扮演 提交于 2019-12-25 00:49:16
问题 I have a fairly large csv file (at least for the web) that I don't have control of. It has about 100k rows in it, and will only grow larger. I'm using the Drupal Module Feeds to create nodes based on this data, and their parser batches the parsing in groups of 50 lines. However, their parser doesn't handle quotation marks properly, and fails to parse about 60% of the csv file. fgetcsv works but doesn't batch things as far as I can tell. While trying to read the entire file with fgetcsv, PHP

how to create a bulk mysql upload script in linux

二次信任 提交于 2019-12-24 21:59:12
问题 I have a mysql datbase with a tables that have the same column names as csv files that i recieve. I used to use a windows batch file to upload then into mysql. @echo off echo TRUNCATE TABLE `alarms`; > importalarm.sql echo Creating list of MySQL import commands for %%s in (*.csv) do echo LOAD DATA LOCAL INFILE '%%s' INTO TABLE `alarms` FIELDS TERMINATED BY ',' ENCLOSED BY ' ' ESCAPED BY '/'LINES TERMINATED BY '\r\n' IGNORE 1 LINES; >> importcsv.sql; echo mysql -u root -p uninetscan <

Testing the Census Batch Geocoding API with Postman and getting an Internal Error

僤鯓⒐⒋嵵緔 提交于 2019-12-24 21:05:56
问题 I am using Postman to test the Census Batch Geocode API and I am using the csv file that they give you to test it but whenever I try to submit the request I get an internal error. Here is the picture of what I have in postman Census Batch API Postman Can anyone tell me what I am missing or doing wrong here? Thank you! 来源: https://stackoverflow.com/questions/54404257/testing-the-census-batch-geocoding-api-with-postman-and-getting-an-internal-erro

Using nlp.pipe() with pre-segmented and pre-tokenized text with spaCy

倾然丶 夕夏残阳落幕 提交于 2019-12-24 19:39:01
问题 I am trying to tag and parse text that has already been split up in sentences and has already been tokenized. As an example: sents = [['I', 'like', 'cookies', '.'], ['Do', 'you', '?']] The fastest approach to process batches of text is .pipe() . However, it is not clear to me how I can use that with pre-tokenized, and pre-segmented text. Performance is key here. I tried the following, but that threw an error docs = [nlp.tokenizer.tokens_from_list(sentence) for sentence in sents] nlp.tagger

If statement in batch file doesn't execute(Possible syntax issue?)

帅比萌擦擦* 提交于 2019-12-24 19:22:49
问题 I am using the below script to help automate some processes that would make my work life easier. When running this current version it faults out and closes the program right as soon as the first if statement executes. Did quite a bit of research on my own and the code looks to be correct. The program closed so fast I couldn't read a reason why. So I ran all the output into a txt file. It looks as if the program faults out for a syntax reason. I unfortunately don't have the file with me and

webapi batch requests

亡梦爱人 提交于 2019-12-24 16:12:43
问题 I am looking for a way to batch requests to the server. I found a post by Brad Wilson outlining how to make a batch handler using a message hanlder http://bradwilson.typepad.com/blog/2012/06/batching-handler-for-web-api.html#more but I wasn't able to get this working. first I had compile errors because webapi did not understand "route-specific endpoint handler" like Brad's example used. there were also problems with the media type and/or formatter (can't remember which). My next attempt was

Including both adminCenter-1.0 and batchManagement-1.0 features in server.xml giving feature conflict error in Liberty 8.5.5.8

若如初见. 提交于 2019-12-24 15:31:20
问题 I am using WebSphere Application Server 8.5.5.8/wlp-1.0.11.cl50820151201-1942 and I am using batchManagement-1.0 and adminCenter-1.0 in my featureManager list like below <featureManager> <feature>servlet-3.1</feature> <feature>batchManagement-1.0</feature> <feature>batch-1.0</feature> <feature>localConnector-1.0</feature> <feature>adminCenter-1.0</feature> </featureManager> server.xml is showing below warning ['adminCenter-1.0' --> 'restConnector-1.0' --> 'jaxrs-1.1' --> 'com.ibm.websphere

JSR352 decide next step based on return parameter from Decider

蹲街弑〆低调 提交于 2019-12-24 10:44:11
问题 I would like to implement a Decider that returns the ID of the next step that needs to be executed. (This question is related to my other question here if you would like to know why I'm trying to do this: JEE Batch Job Specification with many optional Steps) <decision id="decider1" ref="skipNextStepDecider"> <properties> <property name="condition" value="isExecuteSteps"/> </properties> <next on="*" to="STEP_ID_RETURNED_BY_DECIDER"/> <end on="SKIP"/> </decision> Is there any way to do this? I

Extracting file name from array element in batch

泪湿孤枕 提交于 2019-12-24 07:34:46
问题 I have an environment variable like this set BINARY[0]=C:\binary.bin From which I'm trying to extract the full file name set "x=0" :binloop if defined BINARY[%x%] ( call echo %%BINARY[%x%]%% FOR %%i IN ("%%BINARY[%x%]%%") DO ( set FNAME=%%~nxi ) set /a "x+=1" GOTO binloop ) rem ... However for some reason, it tries to do: set FNAME=%BINARY[0]% instead of set FNAME=binary.bin What's wrong with the code and why? 回答1: Open a command prompt window, run set /? and read the output help pages