登录Kafka connect分布式(Logs in Kafka connect Distributed)
我在分布式模式下运行Kafka连接(在3节点集群上)。
VM1中的一个连接器生成的日志是否与VM2和VM3相同?在3个虚拟机上运行的连接器是S3-Sink-Connector,它们使用相同的group.id = s3connector在同一端口8080上运行。
I'm running Kafka connect in Distributed mode(On a 3 node cluster).
Are the logs generated by one connector in VM1 the same as VM2 and VM3?The Connector which is running on 3 VM's is S3-Sink-Connector and they are running on the same port 8080 with the same group.id=s3connector.
原文:https://stackoverflow.com/questions/49162229
最满意答案
决定在这里回答这个问题: 允许键盘输入到嵌入FireMonkey TPopup内的FireMonkey TEdit
为了透明,我在名为Content的fmPopup表单上添加了一个子TPanel。 然后我设置透明度:= True,并将我的自定义样式应用于“内容”面板。 不完全是我想要的,因为我必须编写我自己的TPopup已经拥有的定位/隐藏过程,但我现有的“初始化样式”过程没有任何修改。 我当然欢迎更好的解决方案。
Decided just to go with this answer here: Allowing keyboard input to a FireMonkey TEdit nested inside a FireMonkey TPopup
For transparency, I added a child TPanel on the fmPopup form named Content. Afterwards I set the Transparency:=True, and applied my custom style to the Content panel. Not exactly what I wanted because I had to write my own positioning/hiding procs that a TPopup already had, but my existing "initialize style" procedure worked without any modifications. I certainly welcome any better solutions.
相关问答
更多-
我看起来像这样: 我的安装没有问题。 我认为一切都很好,无效的目录并不重要。 我不确定为什么$(BDSLIB)\$(Platform)\release在您的屏幕截图中被视为无效。 也许这会在您编译项目时自行解决。 但是,我仍然认为这里的一切看起来都很正常,你可以毫无问题地构建项目。 Mine looks like this: I have no problems with my installation. I think that everything is fine and the invalid dir ...
-
请注意,XE2 Update 4很快就会到期。 发行说明可在此处获得 http://docwiki.embarcadero.com/RADStudio/XE2/en/Release_Notes_for_XE2_Update_4 这些注释涉及多个更新,尤其是FMX控件,并且特别提到了TMemo。 在花费太多时间“调试”这个之前,等待这个版本可能是值得的。 Be aware that XE2 Update 4 is due very soon. Release notes are available here ...
-
决定在这里回答这个问题: 允许键盘输入到嵌入FireMonkey TPopup内的FireMonkey TEdit 为了透明,我在名为Content的fmPopup表单上添加了一个子TPanel。 然后我设置透明度:= True,并将我的自定义样式应用于“内容”面板。 不完全是我想要的,因为我必须编写我自己的TPopup已经拥有的定位/隐藏过程,但我现有的“初始化样式”过程没有任何修改。 我当然欢迎更好的解决方案。 Decided just to go with this answer here: Allo ...
-
这种“错误”实际上与FM2中的更改有关(您提到的是XE3 / FM2,但问题标记为XE2 / FMX),但有时也会出现在FMX应用程序中。 解决方案是简单地调用标签上的repaint()函数。 为了简单起见,我将假设ShowMessage ,但是只要处理UI中的任何内容(消息框,面板,矢量形状等),这同样适用。 ShowMessage('My Message'); Label1.Repaint; 使用repaint()应该是适当时使用的东西。 这是一个繁重的操作(一般来说),你应该自由地使用它。 一般准则 ...
-
关于Firemonkey的提示未在Delphi Seattle中显示(Hints on Firemonkey not displaying in Delphi Seattle)[2022-06-11]
通过FMX.Forms进行更多跟踪后,我发现了这个错误。 在TCommonCustomForm.Create方法的最后,使用设置提示对象 if not (csDesigning in ComponentState) then FSharedHint := THint.CreateNewInstance(Handle); 但是当BorderIcons被更改时,以及在其他情况下,它会调用TCommonCustomForm.Recreate方法,该方法也会重新创建窗口句柄,因此提示不再链接到它。 要修复它, ... -
文本提示Delphi XE7(Text Prompt Delphi XE7)[2022-02-27]
您也可以在您的TEdit中粘贴TLabel并将其与内容或客户端对齐。 将它的HitTest属性设置为false。 在onChange事件中,根据Text属性是否为空来显示或隐藏它。 TextPrompt在以前的版本中也有问题,所以我使用了这种解决方法。 You can also just stick a TLabel inside of your TEdit and align it to Content or Client. Set it's HitTest property to false. In t ... -
在TCustomGrid实际上有一个TCustomGrid方法,StringGrid下降,但它是私有的。 从它的来源来看,它使用了ColumnByPoint和RowByPoint方法,幸运的是它们是公开的。 'column'返回TColumn ,如果没有列,则返回nil。 'row'返回一个正整数,或者当没有行时返回-1。 此外,第一行不关心行数,它只考虑行高并基于此返回行号,即使没有行。 此外,我应该注意,网格标题上的行为是错误的。 无论如何,示例示例可能如下: procedure TForm1.Stri ...
-
InputBox不提供您使用的键盘选择,无论是FMX.Dialogs.InputBox还是VCL.Dialogs.InputBox版本。 这是一个使用标准键盘布局的标准化功能。 如果您想要不同的行为,请使用其他方法来获取输入。 设计自己的表单,提供专门的行为并显示它以获取用户的输入。 InputBox doesn't offer a choice of which keyboard you use, whether it's the FMX.Dialogs.InputBox or VCL.Dialogs.I ...
-
键盘输入似乎不适用于TPopup。 一个简单的解决方案是使用TForm作为弹出窗体: unit Popup; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, FMX.Edit; type TfmPo ...
-
是的,这是可能的,但你不会有表格或视觉设计师(就像你只使用API编写Windows应用程序一样)。 菜单项File->New->Other ,选择Console Application 。 右键单击Project Manager中的Target Platforms ,选择OSX 32 ,选中Make target active ,然后OK 。 您可以从项目源中删除{$APPTYPE CONSOLE} (如果您愿意)。 像任何API应用程序一样添加单位,但$(BDS)\Source\rtl\osx文件夹除外。 ...