如何开发(本地)和部署Storm Topology(远程)?(How to develop (locally) and deploy Storm Topology (remotely)?)
我目前在Windows机器上使用Netbeans来开发拓扑。 当我以本地模式部署时:
LocalCluster cluster = new LocalCluster(); cluster.submitTopology("word-count", conf, builder.createTopology());
一切正常,但当我尝试:
StormSubmitter.submitTopology("word", conf, builder.createTopology());
它显然试图在集群模式下部署拓扑并失败,因为我没有在我的本地计算机上运行风暴nimbus。 我确实在一个Digital Ocean Droplet上部署了storm,但我目前(并不方便)的解决方案是复制JAR文件并使用storm jar...
命令进行部署。
我的问题是: 有没有办法告诉Netbeans我的nimbus IP地址是什么,所以它可以远程部署它? (节省我的时间)
先谢谢你!I currently work with Netbeans on Windows machine to develop topologies. When I deploy in local mode:
LocalCluster cluster = new LocalCluster(); cluster.submitTopology("word-count", conf, builder.createTopology());
everything works just fine, but when I try to :
StormSubmitter.submitTopology("word", conf, builder.createTopology());
it obviously tries to deploy the topology in a cluster mode and fails since I dont have storm nimbus running on my local computer. I do have storm deployed on one Digital Ocean droplet, but my current (and not convenient) solution is to copy the JAR file and use thestorm jar...
command to deploy.
My question is: is there a way to tell Netbeans what is my nimbus IP address, so it can deploy it remotely? (and save me the time)
Thank you in advance!
原文:https://stackoverflow.com/questions/25674798
最满意答案
SQL Server在
192.168.56.1
上有两个实例,default
并命名为(SQL
)。该应用程序尝试连接到没有
FBMain
数据库的默认实例。 该数据库存在于命名的istance上。要连接到
named instance
,连接字符串应指定port
(可在SQL Server error log
或Configuration Manager
),或者它可以指定instance name
如下所示:192.168.56.1\SQL
或ANIME-PC\SQL
和SQL Server Browser
shuold在第二种情况下运行。There are TWO instances od SQL Server on
192.168.56.1
,default
and named(SQL
).The app tried to connect to the default instance where there is no
FBMain
database. This database exists on the named istance.To connect to the
named instance
the connection string should specify theport
(that can be found inSQL Server error log
or in theConfiguration Manager
), or it can specifyinstance name
like this:192.168.56.1\SQL
orANIME-PC\SQL
andSQL Server Browser
shuold run in the second case.
相关问答
更多-
使用只读访问权限打开SQL Server数据库 - 确保(Open SQL Server database with read-only access - making sure)[2024-03-19]
您可以检查用户是否有相关数据库的db_datareader以外的任何用户映射。 我找到了一个很好的TSQL查询,但由于整理冲突,它无法在我的系统上运行。 这是一个为我运行的帖子的更新版本。 您可以在SQL Server Management Studio中运行它以了解返回的数据。 DECLARE @name SYSNAME = N'ReadonlyUserNameHere'; -- input param, presumably DECLARE @sql NVARCHAR(MAX) = N''; SEL ... -
目前,MSSQL可能不再工作了,因为我们不需要MSSQL支持(甚至不能访问MSSQL服务器的实例)。 在有人介入帮助MSSQL支持之前,我不认为它可以针对MSSQL进行测试。 At the moment, MSSQL is probably not working anymore as we have had no need for MSSQL support (and do not even have access to an instance of MSSQL server). Until someon ...
-
SQL Server无法连接到Active Directory。 只有在SQL Server中配置的用户才能登录到SQL Server。 您必须将用户添加到SQL Server。 SQL Server is in no way connected to Active Directory. Only users configured in SQL Server can log into SQL Server. You will have to add the user to SQL Server.
-
SQL Server在192.168.56.1上有两个实例, default并命名为( SQL )。 该应用程序尝试连接到没有FBMain数据库的默认实例。 该数据库存在于命名的istance上。 要连接到named instance ,连接字符串应指定port (可在SQL Server error log或Configuration Manager ),或者它可以指定instance name如下所示: 192.168.56.1\SQL或ANIME-PC\SQL和SQL Server Browser s ...
-
如何在linux上打开和编辑mdf sql server数据库文件(How to open and edit mdf sql server database files on linux)[2022-11-21]
截至2016年12月,有一个适用于Linux的SQL Server版本。 推荐的方法是从官方Docker镜像运行SQL Server: https://hub.docker.com/r/microsoft/mssql-server-linux/ https://hub.docker.com/r/microsoft/mssql-tools/ 然后就像对数据库运行SQL脚本一样简单。 甚至还存在用于管理数据库的VS Code插件: https : //github.com/Microsoft/vscode-ms ... -
SQL Server 2008无法打开用户默认数据库 - 错误4064(SQL Server 2008 Cannot open user default database - error 4064)[2022-06-06]
在以下情况下可能会出现此错误: 数据库不存在 数据库不能打开(离线,正在恢复等) 您的登录名未映射到数据库 如果您确定该数据库存在且处于联机状态,那么您的user可能会成为孤儿。 这意味着登录的sid不对应于用户的sid ,这可能是由于恢复引起的。 您可以通过登录来更改您的用户来修复tihis: alter user MyUser with login = MyLogin You can get this error in following cases: database does not exist ... -
对于任何间隔,您只需要以下内容: SELECT COUNT(1) FROM ProcessData row WHERE (row.Start_At >= @start AND row.Start_At < @end) -- starts in interval OR (row.End_At >= @start AND row.End_At < @end) -- ends in interval OR (row.Start_At < @start AND row.End_at >= @end) ...
-
从其他服务器引入备份时, Security\Users下存在的登录名不再有效,因为这些登录(即使它们映射到Windows帐户)仅对数据库所在的服务器有效。 实际上,您必须删除然后重新添加登录。 When bringing over a backup from another server, the login names that exist under Security\Users is no longer valid because those logins (even though they are ...
-
从只读文件系统打开SQL Server CE数据库数据(Open SQL Server CE database data from read only file system)[2022-01-30]
要在只读介质上打开SQL Server CE数据库文件(SDF),还需要向连接字符串添加两个附加参数 模式=只读 温度路径= [路径] 你可以这样做: connectionString = String.Format(@"Data Source = {0}\{1};Mode = Read Only;Temp Path={2}", dataBaseDirectory, dataBaseName, System.IO.Path.GetTempPat ... -
版本706是来自Sql Server 2012的数据库文件版本665是来自Sql Server 2008R2的数据库文件(后SP1?) 您正在尝试打开比当前服务器版本更高版本的数据库文件(例如,使用2008 r2打开2012数据库) 检查连接字符串以验证是否正在与正确的数据库服务器实例建立连接。 Version 706 is a database file from Sql Server 2012 Version 665 is a database file from Sql Server 2008R2 ( ...