Thursday, August 4, 2016

Java HotSpot(TM) Client VM warning: Cannot open file /cassandra37/logs/gc.log due to No such file or directory

I have been started working with cassandra, cause want to create connection with Pentaho tool, since it is having cassandra inputs. So here while working with Cassandra i faced error, it blocking for to work with it. I have looked the errors and find below error in error manager.

Error
Java HotSpot(TM) Client VM warning: Cannot open file /cassandra37/logs/gc.log due to No such file or directory

Problem 
As log clearly tell us "Log directory not exists", so this could be a problem

Solution
Create Log Directory at specified path

Problem
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap

No single argument constructor found for class [Ljava.lang.String;; in 'reader', line 10, column 1:

While setting up of cassandra you might face below error. I faced below error, i did workaround and identified the solution of same. I am going to provide the solutions to all of you guys, to get you out from the any severe problem.

No single argument constructor found for class [Ljava.lang.String;;  in 'reader', line 10, column 1:
   cluster_name: 'Test Cluster'

Problem:
While modification of cassandra.yaml file you might change the format of given directories

Solution:
Change directories path format as given below (it should be exactly same)

data_file_directories:
    - /cassandra/storage/data
commitlog_directory: /cassandra/storage/commitlog
saved_caches_directory: /cassandra/storage/saved_caches

Workaround
In my case i have written data_file_directories as below
data_file_directories: /cassandra/storage/data
When i change path as per given format, then it works fine for me.

Wednesday, August 3, 2016

WARNING! Powershell script execution unavailable.

While setting up of cassandra you might face below error. I faced below error, i did workaround and identified the solution of same. I am going to provide the solutions to all of you guys, to get you out from the any severe problem.

PowerShell have four type of execution modes:
1. Restricted
2. All Signed
3. Remote Signed
4. Unrestricted

We need to set any of the one execution mode, please follow below steps, for the solution of same.

Error

WARNING! Powershell script execution unavailable.
   Please use 'powershell Set-ExecutionPolicy Unrestricted'
   on this user-account to run cassandra with fully featured
   functionality on this platform.

 
Problem
PowerShell have four type of execution modes (Restricted, All Signed, Remote Signed, Unrestricted).
Currently your's machine Powershell Execution mode is set to Restricted.

Solution
Change powershell execution mode for this first open PowerShell with administrative rights "Run as Administrator".

Set-ExecutionPolicy Restricted


Check
Check status of execution mode of Powershell using below command
Unrestricted" goto runPowerShell
web stats