Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-6203

Authentication error on host localhost/127.0.0.1: Required key 'username' is missing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • None
    • None
    • None
    • Mac OS X 10.8.5, java 1.7.0_40

    • Normal

    Description

      When trying to authenticate using the datastax java driver 1.0.3 I get this exception message while trying to connect to my local cassandra:
      Authentication error on host localhost/127.0.0.1: Required key 'username' is missing
      Tried cassandra 2.0 and 1.2.10, works fine.

      Config:

      authenticator: PasswordAuthenticator
      authorizer: CassandraAuthorizer

      Sample code:
      Cluster.builder()
      .withCredentials(username, password)
      .withCompression(ProtocolOptions.Compression.NONE)
      .addContactPoint(host).build()

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sigmundl Sigmund Lundgren
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: