2019-03-05 12:07:14 UTC - eunice: When instantiation PulsarAdmin object, throw 
Exception:      Exception in thread "main" 
org.apache.pulsar.client.admin.PulsarAdminException$NotFoundException: HTTP 404 
Not Found
----
2019-03-05 12:08:16 UTC - eunice: String ip1 = "http://"; + "192.168.2.246" + 
":8080";
----
2019-03-05 12:08:17 UTC - eunice: PulsarAdmin admin = new PulsarAdmin(url, 
config);
        TenantInfo tenantinfo = new TenantInfo();
        admin.tenants().createTenant(topic,tenantinfo);
----
2019-03-05 12:19:08 UTC - eunice: @jia zhai
----
2019-03-05 12:31:34 UTC - jia zhai: @eunice Is the server alive?
----
2019-03-05 12:40:59 UTC - eunice: yes
----
2019-03-05 12:41:19 UTC - eunice: [root@dfv-host-0022 bin]# netstat -natp|grep 
8080
tcp        0      0 192.168.2.246:8080      0.0.0.0:*               LISTEN      
31551/java
----
2019-03-05 12:43:52 UTC - jia zhai: @eunice Is the admin cli work-able?
----
2019-03-05 12:44:43 UTC - jia zhai: 
<http://pulsar.apache.org/docs/en/pulsar-admin/>
----
2019-03-05 15:24:40 UTC - Sijie Guo: @eunice what is your topic?
----
2019-03-06 02:26:22 UTC - eunice: String topic = 
"topic-for-consumerEventListener" ;
----
2019-03-06 02:27:01 UTC - eunice: String topic = 
"<persistent://my-tenant/my-namespace/my-topic>";
----
2019-03-06 02:27:15 UTC - eunice: the last topic
----
2019-03-06 02:49:47 UTC - jia zhai: 
admin.tenants().createTenant(topic,tenantinfo);
----
2019-03-06 02:50:12 UTC - jia zhai: this should be a tenant name
----
2019-03-06 02:50:19 UTC - jia zhai: not a topic name
----
2019-03-06 03:23:16 UTC - eunice: you mean the fisrst param?
----
2019-03-06 03:27:25 UTC - eunice: thanks, now I can create the tenant, but 
another error Exception in thread "main" 
org.apache.pulsar.client.api.PulsarClientException$BrokerMetadataException: 
Policies not found for tenantwyh/my-namespace namespace
----
2019-03-06 03:28:03 UTC - eunice: when I run 
admin.topics().createPartitionedTopic(topic, 4);
----
2019-03-06 03:28:26 UTC - eunice: I am not sure if I should create namespace 
firstly
----
2019-03-06 03:29:00 UTC - Sijie Guo: you need create namespace
----
2019-03-06 03:30:23 UTC - eunice: but if the namespace had been created, I can 
also use the existing namespace, right?
----
2019-03-06 03:36:05 UTC - Sijie Guo: yes
----
2019-03-06 03:36:27 UTC - Sijie Guo: you can use public tenant and default 
namespace. public/default/&lt;topic&gt;
----
2019-03-06 03:37:10 UTC - eunice: how can I assign a cluster for the namespace?
----
2019-03-06 03:39:06 UTC - eunice: where can I get a complete flow for create a 
partitioned topic?
----
2019-03-06 03:39:25 UTC - eunice: because now I think I meet trouble every step
----
2019-03-06 03:39:34 UTC - eunice: :sob:
----
2019-03-06 03:43:06 UTC - Sijie Guo: 
<http://pulsar.apache.org/docs/en/admin-api-partitioned-topics/>
----
2019-03-06 03:45:31 UTC - Sijie Guo: @eunice I would suggest you checkout 
pulsar doc first.

getting started is a good entrypoint : 
<http://pulsar.apache.org/docs/en/standalone/>

if you want to learn how to write java program - 
<http://pulsar.apache.org/docs/en/client-libraries-java/>

learn how to use pulsar-admin to operate the pulsar cluster : 
<http://pulsar.apache.org/docs/en/admin-api-overview/>

Also I think <#C5ZSVEN4E|dev> channel was for discussing development related 
questions. for usage related questions, I would suggest posting to 
<#C5Z4T36F7|general>
----
2019-03-06 03:46:14 UTC - eunice: OK, thank you
----

Reply via email to