Closed Bug 1171521 Opened 10 years ago Closed 10 years ago

telemetry.sh writes environment variables to ~/.bashrc but starts zsh

Categories

(Cloud Services Graveyard :: Metrics: Pipeline, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: joy, Assigned: rvitillo)

Details

Hello, Please see https://github.com/vitillo/emr-bootstrap-spark/blob/master/telemetry.sh#L94 environment variables are written to ~/.bashrc But, in the code region starting at https://github.com/vitillo/emr-bootstrap-spark/blob/master/telemetry.sh#L154 zsh is started. I guess that zsh does not read ~/,bashrc files? As a result, the ipython setup file does not succeed https://github.com/vitillo/emr-bootstrap-spark/blob/master/telemetry.sh#L154 ipython Python 2.7.9 |Anaconda 2.2.0 (64-bit)| (default, Mar 9 2015, 16:20:48) Type "copyright", "credits" or "license" for more information. IPython 3.0.0 -- An enhanced Interactive Python. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://binstar.org ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /home/hadoop/.ipython/profile_default/startup/00-pyspark-setup.py in <module>() 2 3 spark_home = os.environ.get('SPARK_HOME', None) ----> 4 execfile(os.path.join(spark_home, 'python/pyspark/shell.py')) /home/hadoop/anaconda/lib/python2.7/posixpath.pyc in join(a, *p) 75 if b.startswith('/'): 76 path = b ---> 77 elif path == '' or path.endswith('/'): 78 path += b 79 else: AttributeError: 'NoneType' object has no attribute 'endswith'
Assignee: nobody → rvitillo
Priority: -- → P1
I restored the bash shell as the default shell.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.