AnsweredAssumed Answered

'-Xmx512m' is not recognized as an internal or external command, operable program or batch file.

Question asked by walidaoudi on Jun 8, 2018
Latest reply on Jun 10, 2018 by maprcommunity

My OS Environment : Windows 10. 

I am trying to install mapr-client-6.0.1.

I already have installed MapR-Sandbox-For-Hadoop-6.0.1.

 

The following points are already verified :

  • %JAVA_HOME% not containing spaces (C:\Java\jdk1.8.0_162\)
  • %MAPR_HOME% is fine (C:\opt\mapr)
  • In (C:\Windows\System32\drivers\etc\hosts) I have :
    • 127.0.0.1 localhost maprdemo.local maprdemo
    • 10.0.2.15 demo.mapr.com

 

But when I launch the command "server\configure.bat -C 10.0.2.15:7222 -N demo.mapr.com -c -RM maprdemo" I am getting the error "'-Xmx512m' is not recognized as an internal or external command, operable program or batch file."

 

I looked into the whole directory "C:\opt\mapr" and looked for  -Xmx512m and it happends exactly at this line (set HADOOP_CLIENT_OPTS=-Xmx512m %HADOOP_CLIENT_OPTS%) in hadoop-env.cmd

 

I tried to comment the line and the error I am getting now is "'-Dhadoop.security.logger' is not recognized as an internal or external command,operable program or batch file."

 

So it is each time related to Windows command lines but I am not able to find how to tackle this problem.

NB: I already submitted similar blocking point on the mapr-client-6.0.0 and it was never solved but just commented as answered which is not true.

 

Please help.

I am ready to provide any needed information, log file, environment configuration details. 

My only wish is to make mapr-client work in a windows environment and get this issue fixed for me.

Many thanks in advance for anyome reading this post.

Regards

 

Outcomes