Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-8809

[fiware-stackoverflow] Error connecting with hive, to a cosmos server of fiware

    Details

      Description

      Created question in FIWARE Q/A platform on 16-06-2016 at 15:06
      Please, ANSWER this question AT https://stackoverflow.com/questions/37861188/error-connecting-with-hive-to-a-cosmos-server-of-fiware

      Question:
      Error connecting with hive, to a cosmos server of fiware

      Description:
      I can't connect via hive to cosmos server in PHP with:

      // Load this lib
      require_once _DIR_ . '/php-thrift-sql-master/ThriftSQL.phar';

      // Try out a Hive query

      $usuario="user@user";
      $clave="pass";

      $hive = new \ThriftSQL\Hive( 'cosmos.lab.fiware.org', 10000, $usuario, $clave, 1);
      $hiveTables = $hive
      ->setSasl( false ) // To turn SASL auth off, on by default
      ->connect()
      ->queryAndFetchAll( 'SHOW TABLES' );
      print_r( $hiveTables );

      // Don't forget to clear the client and close socket.
      $hive->disconnect();

      Error produced is Thrift\Exception\TTransportException: TSocket: timed out reading 4 bytes from cosmos.lab.fiware.org:10000 in phar://C:/Users/.../php-thrift-sql-master/ThriftSQL.phar/Thrift/Transport/TSocket.php on line 274

      I tried with other servers like storage.cosmos.lab.fiware.org and computing.cosmos.lab.fiware.org. And if I put a long timeout, then the script waits forever.

      Can you help me to connect with php to the hive server of cosmos?

      Thanks in advance.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2h 58m 1 Backlog Manager 22/May/17 6:04 PM
        In Progress In Progress Answered Answered
        2h 59m 1 Backlog Manager 22/May/17 9:04 PM
        Answered Answered Closed Closed
        5d 23h 5m 1 Fernando Lopez 28/May/17 8:10 PM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        HD-Enabler Cosmos [ 10872 ]
        Description
        Created question in FIWARE Q/A platform on 16-06-2016 at 15:06
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/37861188/error-connecting-with-hive-to-a-cosmos-server-of-fiware


        +Question:+
        Error connecting with hive, to a cosmos server of fiware

        +Description:+
        I can't connect via hive to cosmos server in PHP with:

         // Load this lib
          require_once __DIR__ . '/php-thrift-sql-master/ThriftSQL.phar';

          // Try out a Hive query

        $usuario="user@user";
        $clave="pass";

          $hive = new \ThriftSQL\Hive( 'cosmos.lab.fiware.org', 10000, $usuario, $clave, 1);
          $hiveTables = $hive
            ->setSasl( false ) // To turn SASL auth off, on by default
            ->connect()
            ->queryAndFetchAll( 'SHOW TABLES' );
          print_r( $hiveTables );

          // Don't forget to clear the client and close socket.
          $hive->disconnect();




        Error produced is Thrift\Exception\TTransportException: TSocket: timed out reading 4 bytes from cosmos.lab.fiware.org:10000 in phar://C:/Users/.../php-thrift-sql-master/ThriftSQL.phar/Thrift/Transport/TSocket.php on line 274

        I tried with other servers like storage.cosmos.lab.fiware.org and computing.cosmos.lab.fiware.org. And if I put a long timeout, then the script waits forever.

        Can you help me to connect with php to the hive server of cosmos?

        Thanks in advance.
        Created question in FIWARE Q/A platform on 16-06-2016 at 15:06
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/37861188/error-connecting-with-hive-to-a-cosmos-server-of-fiware


        +Question:+
        Error connecting with hive, to a cosmos server of fiware

        +Description:+
        I can't connect via hive to cosmos server in PHP with:

         // Load this lib
          require_once __DIR__ . '/php-thrift-sql-master/ThriftSQL.phar';

          // Try out a Hive query

        $usuario="user@user";
        $clave="pass";

          $hive = new \ThriftSQL\Hive( 'cosmos.lab.fiware.org', 10000, $usuario, $clave, 1);
          $hiveTables = $hive
            ->setSasl( false ) // To turn SASL auth off, on by default
            ->connect()
            ->queryAndFetchAll( 'SHOW TABLES' );
          print_r( $hiveTables );

          // Don't forget to clear the client and close socket.
          $hive->disconnect();




        Error produced is Thrift\Exception\TTransportException: TSocket: timed out reading 4 bytes from cosmos.lab.fiware.org:10000 in phar://C:/Users/.../php-thrift-sql-master/ThriftSQL.phar/Thrift/Transport/TSocket.php on line 274

        I tried with other servers like storage.cosmos.lab.fiware.org and computing.cosmos.lab.fiware.org. And if I put a long timeout, then the script waits forever.

        Can you help me to connect with php to the hive server of cosmos?

        Thanks in advance.
        HD-Chapter Data [ 10838 ]
        fla Fernando Lopez made changes -
        Assignee Backlog Manager [ backlogmanager ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 21:06|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 21:06|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 18:06|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 18:06|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 15:08|CREATED monitor | # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 15:08|CREATED monitor | # answers= 1, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: