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
- Modify the /root/.shell/shared_func file.
- Open the /root/.shell/shared_func file.
vi /root/.shell/shared_func
- Change line 192 to the following:
ai2(){
- Open the /root/.shell/shared_func file.
- Modify the /root/.shell/shared_alias file.
- Open the /root/.shell/shared_alias file.
vi /root/.shell/shared_alias
- Change line 142 to the following:
ai2(){
- Open the /root/.shell/shared_alias file.
- Make the environment variable settings take effect.
1source /home/gpadmin/.bash_profile

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

- Modify the /root/.shell/shared_func file.
- Open the /root/.shell/shared_func file.
vi /root/.shell/shared_func
- Change line 220 to the following:
dL2(){
- Open the /root/.shell/shared_func file.
- Modify the /root/.shell/shared_alias file.
- Open the /root/.shell/shared_alias file.
vi /root/.shell/shared_alias
- Change line 164 to the following:
dL2(){
- Open the /root/.shell/shared_alias file.
- Run the following command again to make the environment variables take effect:
source /home/gpadmin/.bash_profile
Parent topic: Troubleshooting