0

I searched answer on my question, but just found some complex scripts.

I'm trying to configure some software. I have *.cmd file with expression:

SET SPARK_DIST_CLASSPATH={hadoop classpath}

But using just brackets around expression I can't get result as concatenated paths with libs. In Linux, I can replace this expression with

EXPORT SPARK_DIST_CLASSPATH=${hadoop classpath}

and all works fine.

Is it possible to achive the same behaviuor from Windows script in this particular case?

Community
  • 1
  • 1
Ray
  • 1,788
  • 7
  • 55
  • 92

1 Answers1

0

Try

SET SPARK_DIST_CLASSPATH=%hadoop classpath%

Although, I am not sure if the space is tolerated in the name of the environmental variable. A convention is to use capital letters and an underscore.

TomaszGuzialek
  • 861
  • 1
  • 8
  • 15
  • `hadoop classpath` isn't a varible. It's command which execution result is string. Your variant doesn't work – Ray Aug 11 '15 at 20:03