pulsar_1 | 2022-07-20T02:41:02,671+0000 [main] ERROR org.apache.pulsar.PulsarStandaloneStarter - Failed to start pulsar service.
pulsar_1 | java.io.IOException: org.apache.zookeeper.server.persistence.FileTxnSnapLog$DatadirException: Cannot write to data directory data/standalone/zookeeper/version-2
pulsar_1 | at org.apache.pulsar.zookeeper.LocalBookkeeperEnsemble.runZookeeper(LocalBookkeeperEnsemble.java:214) ~[org.apache.pulsar-pulsar-zookeeper-utils-2.10.1.jar:2.10.1]
pulsar_1 | at org.apache.pulsar.zookeeper.LocalBookkeeperEnsemble.startStandalone(LocalBookkeeperEnsemble.java:443) ~[org.apache.pulsar-pulsar-zookeeper-utils-2.10.1.jar:2.10.1]
pulsar_1 | at org.apache.pulsar.PulsarStandalone.start(PulsarStandalone.java:269) ~[org.apache.pulsar-pulsar-broker-2.10.1.jar:2.10.1]
pulsar_1 | at org.apache.pulsar.PulsarStandaloneStarter.main(PulsarStandaloneStarter.java:139) [org.apache.pulsar-pulsar-broker-2.10.1.jar:2.10.1]
pulsar_1 | Caused b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java 9 hrs 10 mins ███████████████▎░░░░░ 72.8% | |
Python 1 hr 49 mins ███░░░░░░░░░░░░░░░░░░ 14.4% | |
YAML 49 mins █▍░░░░░░░░░░░░░░░░░░░ 6.6% | |
Other 24 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.2% | |
SQL 17 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.4% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul v-for="(item,key,index) in relatedProducts"> | |
<h2>{{ key }}</h2> | |
<li v-for="(p,p_index) in item"> | |
{{ p.name }} | |
</li> | |
</ul> | |
// | |
relatedProducts = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set +x | |
# Setup all of the pyenvs | |
export PATH="$HOME/.pyenv/bin:$PATH" | |
export CONFIGURE_OPTS='--enable-shared' | |
eval "$(pyenv init -)" | |
pyenv shell 2.7.5 | |
pyenv virtualenvwrapper | |
pyenv rehash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
nohup /usr/bin/java -jar $1 >> $2 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#newCustomerForm").validate({ | |
submitHandler: function (form) { | |
form.submit(); | |
}, | |
errorPlacement: function (error, element) { | |
error.appendTo(element.parents('.form-group')); | |
}, | |
rules:{ | |
customerUsername: { | |
isMobile:true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map<Long, ShoppingCart> idAndCarts = curShoppingCarts.stream() | |
.collect(Collectors.toMap( | |
ShoppingCart::getGoodsInfoId, | |
cart -> cart // equal to `identity()` | |
// , | |
// (k, v) -> v | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP PROCEDURE IF EXISTS build_test_data; | |
DELIMITER # | |
CREATE PROCEDURE build_test_data() | |
BEGIN | |
DECLARE v_max INT UNSIGNED DEFAULT 20; | |
DECLARE v_counter INT UNSIGNED DEFAULT 0; | |
START TRANSACTION; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update np_manager mm | |
left join | |
( SELECT | |
left(m.location_id, 2) * pow(10, 10) AS province_id, | |
(CASE WHEN m.type >= '2' | |
THEN left(m.location_id, 4) * pow(10, 8) | |
ELSE 0 | |
END) city_id, | |
(CASE WHEN m.type >= '2' | |
THEN left(m.location_id, 6) * pow(10, 6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var areas = _.chain(nodes) | |
.filter(function (node) { | |
switch (node.id[0]) { | |
case 'p': // 省 是全选状态 | |
return isFullCheck(node); | |
case 'c': // 市 是全选状态 and 上级(省)是半选 | |
return isFullCheck(node) | |
&& !isFullCheck(node.getParentNode()); | |
case 'd': // 区县 是全选状态 and 上级(市)是半选 | |
return !isFullCheck(node.getParentNode()); |
NewerOlder