public static string GetHBaseMasterServerIP()
        {
            string ip1 = "localhost";
            string ts  = ConfigOperator.GetAppConfigValue <string>("ThriftServer");

            if (!string.IsNullOrWhiteSpace(ts))
            {
                string[] tss = ts.Split(':');
                if (tss.Length == 2)
                {
                    ip1 = tss[0];
                }
            }
            return(ip1);
        }
        public SetThriftServerForm()
        {
            InitializeComponent();

            string ts = ConfigOperator.GetAppConfigValue <string>("ThriftServer");

            if (!string.IsNullOrWhiteSpace(ts))
            {
                string[] tss = ts.Split(':');
                if (tss.Length == 2)
                {
                    this.txtServerIP.Text    = tss[0];
                    this.nudServerPort.Value = int.Parse(tss[1]);
                }
            }
        }
        public static HBaseThriftClient GetHBaseThriftClient()
        {
            string ip   = "localhost";
            int    port = 9090;

            string ts      = ConfigOperator.GetAppConfigValue <string>("ThriftServer");
            int    timeout = int.Parse(ConfigurationManager.AppSettings["ThriftTimeoutMilliseconds"]);

            if (!string.IsNullOrWhiteSpace(ts))
            {
                string[] tss = ts.Split(':');
                if (tss.Length == 2)
                {
                    ip   = tss[0];
                    port = int.Parse(tss[1]);
                }
            }

            return(new HBaseThriftClient(ip, port, timeout));
        }