Rate This Document
Findability
Accuracy
Completeness
Readability

Syntax Error During Configuration of Environment Variables When Greenplum Is Being Deployed

Symptom

The message "-bash:/root/.shell/shared_func: line 195..." is displayed during the configuration of environment variables when Greenplum is being deployed, as shown in the following figure.

Key Process and Cause Analysis

A possible cause is that the syntax for configuring environment variables is incorrect.

Conclusion and Solution

  1. Modify the /root/.shell/shared_func file.
    1. Open the /root/.shell/shared_func file.
      vi /root/.shell/shared_func
    2. Change line 192 to the following:
      ai2(){
  2. Modify the /root/.shell/shared_alias file.
    1. Open the /root/.shell/shared_alias file.
      vi /root/.shell/shared_alias
    2. Change line 142 to the following:
      ai2(){
  3. Make the environment variable settings take effect.
    1
    source /home/gpadmin/.bash_profile
    

  4. Modify the /root/.shell/shared_func file.
    1. Open the /root/.shell/shared_func file.
      vi /root/.shell/shared_func
    2. Change line 216 to the following:
      ad2(){
  5. Modify the /root/.shell/shared_alias file.
    1. Open the /root/.shell/shared_alias file.
      vi /root/.shell/shared_alias
    2. Change line 160 to the following:
      ad2(){
  6. Make the environment variable settings take effect.
    1
    source /home/gpadmin/.bash_profile
    

  7. Modify the /root/.shell/shared_func file.
    1. Open the /root/.shell/shared_func file.
      vi /root/.shell/shared_func
    2. Change line 220 to the following:
      dL2(){
  8. Modify the /root/.shell/shared_alias file.
    1. Open the /root/.shell/shared_alias file.
      vi /root/.shell/shared_alias
    2. Change line 164 to the following:
      dL2(){
  9. Run the following command again to make the environment variables take effect:
    source /home/gpadmin/.bash_profile