How to stop Solr delta import from creating a log file - solr

I have solr installed on Debian and every time delta import takes place a file gets created in my root directory.
The files look like this
dataimport?command=delta-import.1
dataimport?command=delta-import.2
.
.
.
dataimport?command=delta-import.30
Every time there is a delta import a file gets created , i opened the file in vi editor and its an xml file.
Why are these files getting created and how do i stop solr from creating them.
To start solr i use this command
Java -jar start.jar &
According to this command no log files should be created.
Please advise and help iam new to solr

These files are generated by the command invoking the delta-import. From the file name it seems you have a cronjob running that does a wget .. on the URL, which results in wget attempting to create a file named dataimport?command=delta-import in the directory where it's running. When that file exists, it appends .1 and up.
Check which command you run from cron (crontab -e) and if you're using wget, append -O /dev/null to your command to make wget discard the response from the server.

Related

airflow db init doesn't create an expected "airflow" directory on windows

I am using windows, and accessing WSL through VSCode
I am currently learning airflow and ran into an issue with the command airflow db init. According to a tutorial I'm following, there should be a new directory called airflow inside the current directory, but it is not there
My current path is (sandbox) nick#GameCube:/mnt/d/CodeAndIDE/DataScience/LearnAirflow$. I am using a venv called "sandbox"
When I run airflow db init, it outputs a bunch of lines, which match the tutorial, but no folder is created after. No error output either. Why is this?
I partially figured out the solution. You have to first set the airflow home directory to the current folder, with export AIRFLOW_HOME="$(pwd)".
For some reason, this didn't create a directory for the file and just dumped them all into the main directory, so I deleted them all and did mkdir airflow, cd airflow, export AIRFLOW_HOME="$(pwd)" again.
The last problem that I'm having is that unittests.cfg is not present in the folder, when I think that it should be

'mongo' is still not working on PowerShell after doing all recommended things

I installed MongoDB and tried to run it on terminal. It just shows up 'mongo' is not recognized as an internal or external command, operable program or batch file.
I have set the path to bin folder inside Environment variables too. One thing I noticed is I might have a missing file inside bin folder and that is mongo. Because I have mongod and mongos file inside the bin folder. I tried to uninstall and reinstall the program and it was still not working.
I have no idea it's what that I'm missing. Please help out
Finally I have found the solution,
Mongo shell no longer ships with server binaries. We can download it from MongoDB Shell Download
Then we should extract the contents of the bin from the downloaded zip file to the bin file of the MongoDB folder and run mongosh instead of mongo on the terminal

how to change solr home data directory

I am using solr 5.2.1 on ubuntu server, I have created some cores in it and added data to it.
After some time due to some error I restarted solr service using following command
service solr restart
After this command my data directory got suddenly changed from
"/opt/solr/server/solr"
to
"/var/solr/data"
on dashboard it is showing as Dsolr.solr.home=/var/solr/data
Now how can I change this home data path, what is process or command to change this path
command to change home path
solr start -s /opt/solr/server/solr
or if you are not in bin page than also specify its full path.
bin/solr start -s /opt/solr/server/solr

Batch file to run JMeter script

I have a .jmx file of all of my test plans and I want to create a batch file. When I click that, everything starts and ends automatically. So that I can provide it to my client as well to verify that I have performed the load test on his website. How can I achieve this?
jmeter does not support running batch of .jmx files as document part 2.4.3 (Command Line Mode) gives to us.
I would recommend you to try 2 approaches:
1) to follow best practices of running jMeter in non GUI mode.
In accordance to this approach you are expected to use the command
jmeter -n -t D:\TestScripts\script.jmx -l D:\TestScripts\scriptresults.jtl
Where the pareameters:
-n [This specifies JMeter is to run in non-gui mode]
-t [name of JMX file that contains the Test Plan]
-l [name of JTL file to log sample results to]
-j [name of JMeter run log file]
2) to use any cloud service for running your .jmx file.
BlazeMeter (http://blazemeter.com/) worked for me fine.
One can adjust the test plan settings.
Testing results can be seen on “Load Report” tab as soon as test finishes.
For detalization one can follow Getting Started: Scripting with JMeter steps.
Hope this works for you.
Just write the following command in a text file and save this file as SomeName.bat
#ECHO OFF
jmeter -n -t "Your .jmx file path" -l "Your .jtl file path"
For example:
#echo off
jmeter -n -t F:\DEV\WORKSPACE\buyer.jmx -l F:\DEV\WORKSPACE\output.jtl
After saving click on that bat file. The test plan result will be stored into .jtl file.
Note: Make sure you put this bat file into JmeterinstallationDirectory/bin folder.

CMD instead of running command just opens it

OS Win7, GAE 1.7.6, Python 2.7.3
Working on Google app engine project with 2 other people, project leader gave us sample data via sampleData.cmd to run it inside.
nameOfTheApp\main>sampleData
On other 2 computer this command starts to download files, on my just returns.
appcfg.py upload_data --config_file=bulkloader.yam...etc
In other words it just pop up in my text editor, and in CMD, but it doesn't run it.
How to force this command to run?
EDIT: Open sampleData.cmd with editor and c/p content in CMD
python appcfg.py upload_data --config_file=bulkloader.yam...etc
It returns python:can't open file 'appcfg.py' [Errno 2] No such file or directory
ANSWER:
Problem was that I associated .py files with my text editor, when changed to python.exe, it works...
Problem was that I associated .py files with my text editor, when i changed it to .exe, it works...

Resources