Category Archives: Programming

Enable CORS to Send Cross Domain Request to Elasticsearch using AJAX

Enable CORS to Send Cross Domain Request to Elasticsearch using AJAX

Enable CORS to Send Cross Domain Request to Elasticsearch using AJAX

Enable CORS to Send Cross Domain Request to Elasticsearch using AJAX

           I faced this issue when I used my web application to send AJAX request to get data from Elasticsearch. The web application was deployed in Apache Tomcat (port 8080 was used). XMLHttpRequest cannot load http://localhost:9200/. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:8080’ is therefore not allowed… Read More »

REGEX (Regular Expression) to Remove/Strip HTML Tags in PERL

REGEX (Regular Expression) to Remove or Strip HTML Tags in PERL

REGEX (Regular Expression) to Remove/Strip HTML Tags in PERL

REGEX (Regular Expression) to Remove or Strip HTML Tags in PERL

The following regular expression can be used in Perl progamming language to remove/strip HTML tags in given string. Regular Expression: s/<(?:[^>’”]*|([‘”]).*?\1)*>//ig   Example: my $data ='<script>TEST</script> <img src=”img.jpg”>’; $data =~ s/<(?:[^>'”]*|([‘”]).*?\1)*>//ig; print $data; Output: TEST

Spark Error – java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries

SPARK ERROR – JAVA IO IOEXCEPTION COULD NOT LOCATE EXECUTABLE NULL-BIN WINUTILS.EXE IN THE HADOOP BINARIES

Spark Error – java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries

SPARK ERROR – JAVA IO IOEXCEPTION COULD NOT LOCATE EXECUTABLE NULL-BIN WINUTILS.EXE IN THE HADOOP BINARIES

           The following error is due to missing winutils binary in the classpath while running Spark application. Winutils is a part of Hadoop ecosystem and is not included in Spark. The actual functionality of your  application may run correctly even after the exception is thrown. But it is better to have it… Read More »

Elasticsearch Plugin To Generate (Save and E-Mail) Excel Reports

ELASTICSEARCH PLUGIN TO GENERATE (SAVE AND E-MAIL) EXCEL REPORTS

Elasticsearch Plugin To Generate (Save and E-Mail) Excel Reports

ELASTICSEARCH PLUGIN TO GENERATE (SAVE AND E-MAIL) EXCEL REPORTS

ElasticTab – Elasticsearch to Excel Report Web Application Simple Web UI Download Excel Reports Schedule/Edit/Delete Reports E-Mail Reports Go to https://github.com/raghavendar-ts/ElasticTab-Elasticsearch-to-Excel-Report Elasticsearch Plugin to Generate Excel Reports            There are many use cases where in one needs to import data from an external system or database to Elasticsearch and many plugins… Read More »