impala和hive shell下退格键出现 ^H的解决方法

通过impala-shell 连接到impala shell命令下是,输入命令要删除字符时会出现 ^H字符,而不能真正删除,如下所示:

 

[await]mqq@192.168.10.1:~$ impala-shell

Starting Impala Shell without Kerberos authentication

Connected to slave1:21000

Server version: impalad version cdh5-1.3.0 RELEASE (build 40e1b62cf0b97f666d084d9509bf9639c575068c)

Welcome to the Impala shell. Press TAB twice to see a list of available commands.

 

Copyright (c) 2012 Cloudera, Inc. All rights reserved.

 

(Shell build version: Impala Shell vcdh5-1.3.0 (40e1b62) built on Tue Mar 25 13:46:44 PDT 2014)

[slave1:21000] > show^H^H^H^H^H

 

 

 

解决方法如下三种:

1、通过ctrl+退格键 组合进行删除

 

2、启动impala-shell 和hive shell前执行 stty erase ^H,再通过相应命令连入shell则能正常

 

3、在bash下:把 stty erase ^? 添加到.bash_profile中

  在csh下: 把$ stty erase ^H  添加到.bash_profile中

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值