在处理我的第一个基于读取Apache文件并处理它的Storm拓扑时,我在提交拓扑时遇到了奇怪的错误:
6044 [main] WARN backtype.storm.daemon.nimbus - Topology submission exception. (topology name='apachelog') #<InvalidTopologyException InvalidTopologyException(msg:Component: [lineBolt] subscribes from non-existent component [line])>
6051 [main] ERROR org.apache.zookeeper.server.NIOServerCnxn - Thread Thread[main,5,main] died
backtype.storm.generated.InvalidTopologyException: null
at backtype.storm.daemon.common$validate_structure_BANG_.invoke(common.clj:151) ~[storm-core-0.9.0.1.jar:na]
at backtype.storm.daemon.common$system_topology_BANG_.invoke(common.clj:287) ~[storm-core-0.9.0.1.jar:na]
at backtype.storm.daemon.nimbus$fn__5528$exec_fn__1229__auto__$reify__5541.submitTopologyWithOpts(nimbus.clj:932) ~[storm-core-0.9.0.1.jar:na]
at backtype.storm.daemon.nimbus$fn__5528$exec_fn__1229__auto__$reify__5541.submitTopology(nimbus.clj:950) ~[storm-core-0.9.0.1.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_65]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_65]
at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93) ~[clojure-1.4.0.jar:na]
at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) ~[clojure-1.4.0.jar:na]
at backtype.storm.testing$submit_local_topology.invoke(testing.clj:236) ~[storm-core-0.9.0.1.jar:na]
at backtype.storm.LocalCluster$_submitTopology.invoke(LocalCluster.clj:19) ~[storm-core-0.9.0.1.jar:na]
at backtype.storm.LocalCluster.submitTopology(Unknown Source) ~[storm-core-0.9.0.1.jar:na]
at storm.starter.ApacheAccessLogTopology.main(ApacheAccessLogTopology.java:68) ~[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_65] …Run Code Online (Sandbox Code Playgroud) 我正在为Android 4.4运行模拟器.在运行命令上,emulator -avd myAVD它Bus error在控制台上提供.怎么解决?
我正在undefined寻找$ routeParams.这是我的代码:
var ngAddressBook = angular.module('ngAddressBook', ['ngRoute']);
ngAddressBook.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/', {
templateUrl: 'views/list.html',
controller: 'ngAddressListController'
}).
when('/add', {
templateUrl: 'views/add.html',
controller: 'ngAddressListController'
}).
when('/details/:id', {
templateUrl: 'views/details.html',
controller: 'ngAddressDetailsController'
});
}]);
// add a controller to it
ngAddressBook.controller('ngAddressListController', ['$scope', function ($scope)
{
$scope.contacts = [
{id:1,first_name:'Jane', last_name:'Doe','Phone':'123-456789','Email':'jane@example.com'},
{id:2,first_name:'Jhon', last_name:'Doe','Phone':'123-456789','Email':'jhon@example.com'}
];
$scope.getTotalContacts = function () {
return $scope.contacts.length;
};
}]);
ngAddressBook.controller('ngAddressDetailsController', ['$scope', function ($scope,$routeParams)
{
alert($routeParams);
$scope.id = $routeParams.id;
}]);
Run Code Online (Sandbox Code Playgroud)
的index.html
<!doctype html>
<html ng-app="ngAddressBook">
<head>
<title>Ng …Run Code Online (Sandbox Code Playgroud) 我正在使用通用规则TH标记,Table但它扰乱了所有事情.我使用的规则如下:
th
{
color: #fff;
background: #7d7e7d;
}
Run Code Online (Sandbox Code Playgroud)
但现在我想为几个表指定ID,以便它根本不影响其他表.我做的是:
#id1,#id2 th
{
color: #fff;
background: #7d7e7d;
}
Run Code Online (Sandbox Code Playgroud)
这种颜色的传播方式也是如此.我如何完成任务?
我在标签内附加了一个 divvideo并使用了以下 CSS,但它不起作用。我已经合并了 JavaScript 来在点击时播放/停止视频。我想在播放器中间显示一个按钮。像这样的东西
#player_buttons
{
width: 128px;
height: 128px;
z-index: 99;
background: url('http://cdn1.iconfinder.com/data/icons/iconslandplayer/PNG/64x64/CircleBlue/Play1Pressed.png') center center no-repeat;
}
Run Code Online (Sandbox Code Playgroud) 我错误地添加了文件master并承诺了.否则我不得不在分公司做feature_x
现在我知道有像这样的命令git reset.我的问题是,如果我重置一下,它会撤消我的代码还是只是撤消文件并提交master?
如何在不丢失代码的情况下避免重置事物?
更新
代码还没有被推到远程.当我尝试它时给出了错误:
error: src refspec feature_x does not match any.
我正在使用PHP编写机器人.我将选定的项目存储在我的webhooks文件中的会话变量中.事情是,在下一个钩子请求时,它不显示Session数据并返回空.
我通过从表中获取值来传递共享视图中的值。我需要知道用户 ID,但Auth::check()返回 false。我该怎么做?下面是代码:
public function boot()
{
$basket_count = 0;
if (Auth::check()) { //always false
$loggedin_user_id = Auth::user()->id;
$basket_count = Cart::getBasketCount();
}
view()->share('basket_count', $basket_count);
}
Run Code Online (Sandbox Code Playgroud) 无论如何在scrapy中使用这样的选择器?
我试过跟随,但索引超出范围错误
response.css('.breadcrumbs > ul > li:not[class^="home"]').extract()
我收到了错误InterfaceError (0, '').Pymysql库中是否有方法可以检查连接或光标是否关闭.对于游标,我已经使用了上下文管理器:
with db_connection.cursor() as cursor:
....
Run Code Online (Sandbox Code Playgroud) css ×2
javascript ×2
android ×1
angularjs ×1
apache-storm ×1
bitbucket ×1
bots ×1
css-tables ×1
git ×1
html ×1
html5-video ×1
java ×1
jquery ×1
laravel ×1
laravel-5.3 ×1
mysql ×1
php ×1
pymysql ×1
python ×1
scrapy ×1
view ×1