My Youtube Channel

Please Subscribe

Flag of Nepal

Built in OpenGL

Word Cloud in Python

With masked image

Saturday, May 18, 2019

elasticsearch - Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME.



First of all make sure java jdk is installed on your system. Then go to environment variables of your system. Add new variable called "JAVA_HOME" and add variable value as the path where jdk is installed on your system (eg: C:\Program Files\Java\jdk-12.0.1) and then press ok as shown in figure below:

Now, open cmd type echo %JAVA_HOME% ,if it shows the path entered previously while creating new variable then its ok. If everything is all right upto this point, go to the folder when the files of elasticsearch is located through cmd (for eg have my folder on G: drive so my path looks like 
G:\elasticsearch\bin> ). Finally, enter elasticsearch-service.bat install.
If you see output as shown below then your installation has been successful.

G:\elasticsearch\bin>elasticsearch-service.bat install
Installing service      :  "elasticsearch-service-x64"
Using JAVA_HOME (64-bit):  "C:\Program Files\Java\jdk-12.0.1"
The service 'elasticsearch-service-x64' has been installed. 

To run elasticsearch service, again enter given command entering into the bin of your elasticsearch folder as shown below:


G:\elasticsearch\bin>elasticsearch-service.bat manager

Running this command will display a window as shown in figure below:


Click "Start" button to start the service. Wait for few seconds or a minute, then open browser and type the given URL:  http://localhost:9200/  , you can the output as shown below if everything is fine.

The elastic service can also be run through windows services. Search for services on search box on windows 10 and click on it to open services window. Then search for "Elasticsearch" and right click on it and select "Start". Again, wait for few seconds and go to http://localhost:9200/ to check if service is running or not.








Monday, May 13, 2019

The fifth final heartbreak for CSK


Having played ten seasons of IPL, CSK holds impressive records of qualifying into the playoffs every time, reaching into final eight out of ten times. But at the same time it holds scary record of loosing most of the finals it reached. CSK now have lost 5 out of 8 IPL finals having won only 3 of them, most importantly three lose came against Mumbai Indians which CSK fans obviously finds it difficult to digest. MI has won four out of their five IPL finals, all coming against Dhoni (three against CSK and one against Rising Pune Supergaint).
In this IPL 2019, MI completely dominated CSK whether in league matches or qualifier. Infact, MI were only able to beat CSK at their home not only once but twice, one in league match and another in qualifier. So, MI reached final with three wins against CSK and at the same time CSK reached final with three loses against MI. But all CSK fans were hoping that CSK can't loose four match against MI in a single season, and CSK may win the final and guess what CSK almost won the final but that last ball wicket left CSK fans with nothing but heartbreak making it fifth final loss. This loss was difficult to digest than the last four finals which CSK lost because it was so near yet so far. CSK lost just by one run. The tragedy of 2017 repeated, the only difference being it was RPS at the receiving end in 2017 and this time it was CSK.
The 2019 IPL final was actually full of drama, mistakes being committed by both team. And as MSD said at post match presentation, it was like both teams were passing trophy to one another during match by committing mistakes and allowing the opposition to make come back in the game. But CSK made more mistakes than MI did and hence paid huge price for it by rewarding trophy to MI. There were many turning points for CSK. Many says the run out of MSD or the run out of Watson but I personally feel the turning point was the wicket of Faf du Plessis. Having known that the middle order has been completely exposed this season, he should have batted long. Though CSK were in a good position at the time fall of his wicket but he was hitting the ball very well. At the same time the upcoming batsmen had been struggling throughout the season except MSD, and MSD was obviously not going to win you matches every time. But none of us thought that MSD inning would end with a run out. It was infact first run out for MSD in IPL after 2012. So nothing was going in favour of CSK except three dropped catches of Watson to keep the hope of CSK alive till the last over in the night of final. But even Watson could not take CSK over the winning line and his fabulous inning came to an end with only two balls remaining and requiring four to win. Shardul Thakur managed only two runs loosing his wickets in the ball. He was playing his only third match this season so it was not easy for him as well. I feel Jadeja could have been sent to bat before Dwayne Bravo because he had been good with the bat this season and Bravo had rarely got any chance to bat and as a result Bravo scored 15 runs of 15 balls when the required rate was almost above 11. Also, I think Imran Tahir should have been brought little earlier to bowl and should have been allowed to complete his 4 overs quota as was leading wicket taker for CSK, infact ended as leading wicket taker of this season. But now, none of these arguments matter because the fact remains that CSK lost 2019 IPL final by 1 run.
At last as a CSK fan, the only good thing about the final was Thala saying "Hopefully I will return" next year for CSK because it is difficult to imagine CSK without him and IPL without CSK.